0
Files
src/components/ntp_snippets/ntp_snippets_constants.cc
Pavel Yatsuk 6937bfb1cb [Zine GWS] Make all channels fetch content suggestions from prod endpoint
Current server infrastructure doesn't have dedicated staging endpoint. All
traffic should be sent to prod endpoint.

BUG=811909
R=wylieb@chromium.org

Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I028f9b0f5fcf80dc313c534347800d8bdcae185d
Reviewed-on: https://chromium-review.googlesource.com/1174958
Commit-Queue: Pavel Yatsuk <pavely@chromium.org>
Reviewed-by: Sky Malice <skym@chromium.org>
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Filip Gorski <fgorski@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584207}
2018-08-17 21:50:53 +00:00

42 lines
1.6 KiB
C++

// 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