summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_cookies_api_constants.cc
blob: 1524d3620ffc06dd0a90e0d41d1950aec711f017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2010 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 "chrome/browser/extensions/extension_cookies_api_constants.h"

namespace extension_cookies_api_constants {

const wchar_t kCookieKey[] = L"cookie";
const wchar_t kDomainKey[] = L"domain";
const wchar_t kExpirationDateKey[] = L"expirationDate";
const wchar_t kHostOnlyKey[] = L"hostOnly";
const wchar_t kHttpOnlyKey[] = L"httpOnly";
const wchar_t kIdKey[] = L"id";
const wchar_t kNameKey[] = L"name";
const wchar_t kPathKey[] = L"path";
const wchar_t kRemovedKey[] = L"removed";
const wchar_t kSecureKey[] = L"secure";
const wchar_t kSessionKey[] = L"session";
const wchar_t kStoreIdKey[] = L"storeId";
const wchar_t kTabIdsKey[] = L"tabIds";
const wchar_t kUrlKey[] = L"url";
const wchar_t kValueKey[] = L"value";

const char kOnChanged[] = "cookies.onChanged";

const char kCookieSetFailedError[] =
    "Failed to parse or set cookie named \"*\".";
const char kInvalidStoreIdError[] = "Invalid cookie store id: \"*\".";
const char kInvalidUrlError[] = "Invalid url: \"*\".";
const char kNoCookieStoreFoundError[] =
    "No accessible cookie store found for the current execution context.";
const char kNoHostPermissionsError[] =
    "No host permissions for cookies at url: \"*\".";

}  // namespace extension_cookies_api_constants