blob: f315c4711ad434283927041c09ecbde4f29f9ca7 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/ntp_snippets/ntp_snippets_constants.h"
namespace ntp_snippets {
const base::FilePath::CharType kDatabaseFolder[] =
FILE_PATH_LITERAL("NTPSnippets");
const char kContentSuggestionsApiScope[] =
"https://www.googleapis.com/auth/chrome-content-suggestions";
// There is only one endpoint for fetching suggestions. Current server
// infrastructure doesn't have staging endpoint.
const char kContentSuggestionsServer[] =
"https://chromefeedcontentsuggestions-pa.googleapis.com/v2/suggestions/"
"fetch";
const char kPushUpdatesSubscriptionServer[] =
"https://chromecontentsuggestions-pa.googleapis.com/v1/suggestions/"
"subscribe";
const char kPushUpdatesSubscriptionStagingServer[] =
"https://staging-chromecontentsuggestions-pa.googleapis.com/v1/suggestions/"
"subscribe";
const char kPushUpdatesSubscriptionAlphaServer[] =
"https://alpha-chromecontentsuggestions-pa.sandbox.googleapis.com/v1/"
"suggestions/subscribe";
const char kPushUpdatesUnsubscriptionServer[] =
"https://chromecontentsuggestions-pa.googleapis.com/v1/suggestions/"
"unsubscribe";
const char kPushUpdatesUnsubscriptionStagingServer[] =
"https://staging-chromecontentsuggestions-pa.googleapis.com/v1/suggestions/"
"unsubscribe";
const char kPushUpdatesUnsubscriptionAlphaServer[] =
"https://alpha-chromecontentsuggestions-pa.sandbox.googleapis.com/v1/"
"suggestions/unsubscribe";
} // namespace ntp_snippets