ntp_snippets_constants.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_CONSTANTS_H_
  5. #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_CONSTANTS_H_
  6. #include "base/files/file_path.h"
  7. namespace ntp_snippets {
  8. // Name of the folder where the snippets database should be stored. This is only
  9. // the name of the folder, not a full path - it must be appended to e.g. the
  10. // profile path.
  11. extern const base::FilePath::CharType kDatabaseFolder[];
  12. // OAuth access token scope.
  13. extern const char kContentSuggestionsApiScope[];
  14. // Server endpoint for fetching snippets.
  15. extern const char kContentSuggestionsServer[];
  16. // Server endpoints for push updates subscription.
  17. extern const char kPushUpdatesSubscriptionServer[]; // used on stable/beta
  18. extern const char
  19. kPushUpdatesSubscriptionStagingServer[]; // used on dev/canary
  20. extern const char kPushUpdatesSubscriptionAlphaServer[]; // for testing
  21. // Server endpoints for push updates unsubscription.
  22. extern const char kPushUpdatesUnsubscriptionServer[]; // used on stable/beta
  23. extern const char
  24. kPushUpdatesUnsubscriptionStagingServer[]; // used on dev/canary
  25. extern const char kPushUpdatesUnsubscriptionAlphaServer[]; // for testing
  26. } // namespace ntp_snippets
  27. #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_CONSTANTS_H_