Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: net/base/static_cookie_policy.h

Issue 6969077: net: Add NET_API to net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_STATIC_COOKIE_POLICY_H_ 5 #ifndef NET_BASE_STATIC_COOKIE_POLICY_H_
6 #define NET_BASE_STATIC_COOKIE_POLICY_H_ 6 #define NET_BASE_STATIC_COOKIE_POLICY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "net/base/net_api.h"
12 13
13 class GURL; 14 class GURL;
14 15
15 namespace net { 16 namespace net {
16 17
17 // The StaticCookiePolicy class implements a static cookie policy that supports 18 // The StaticCookiePolicy class implements a static cookie policy that supports
18 // three modes: allow all, deny all, or block third-party cookies. 19 // three modes: allow all, deny all, or block third-party cookies.
19 class StaticCookiePolicy { 20 class NET_API StaticCookiePolicy {
20 public: 21 public:
21 // Do not change the order of these types as they are persisted in 22 // Do not change the order of these types as they are persisted in
22 // preferences. 23 // preferences.
23 enum Type { 24 enum Type {
24 // Do not perform any cookie blocking. 25 // Do not perform any cookie blocking.
25 ALLOW_ALL_COOKIES = 0, 26 ALLOW_ALL_COOKIES = 0,
26 // Prevent only third-party cookies from being set. 27 // Prevent only third-party cookies from being set.
27 BLOCK_SETTING_THIRD_PARTY_COOKIES, 28 BLOCK_SETTING_THIRD_PARTY_COOKIES,
28 // Block all cookies (third-party or not) from begin set or read. 29 // Block all cookies (third-party or not) from begin set or read.
29 BLOCK_ALL_COOKIES, 30 BLOCK_ALL_COOKIES,
(...skipping 26 matching lines...) Expand all
56 57
57 private: 58 private:
58 Type type_; 59 Type type_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(StaticCookiePolicy); 61 DISALLOW_COPY_AND_ASSIGN(StaticCookiePolicy);
61 }; 62 };
62 63
63 } // namespace net 64 } // namespace net
64 65
65 #endif // NET_BASE_STATIC_COOKIE_POLICY_H_ 66 #endif // NET_BASE_STATIC_COOKIE_POLICY_H_
OLDNEW
« base/compiler_specific.h ('K') | « net/base/ssl_info.h ('k') | net/base/test_root_certs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698