OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_NET_CHROME_COOKIE_POLICY_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_COOKIE_POLICY_H_ |
6 #define CHROME_BROWSER_NET_CHROME_COOKIE_POLICY_H_ | 6 #define CHROME_BROWSER_NET_CHROME_COOKIE_POLICY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } | 61 } |
62 | 62 |
63 bool is_set_cookie_request_; | 63 bool is_set_cookie_request_; |
64 net::CompletionCallback* callback_; | 64 net::CompletionCallback* callback_; |
65 }; | 65 }; |
66 typedef std::vector<Completion> Completions; | 66 typedef std::vector<Completion> Completions; |
67 typedef std::map<std::string, Completions> HostCompletionsMap; | 67 typedef std::map<std::string, Completions> HostCompletionsMap; |
68 | 68 |
69 int CheckPolicy(const GURL& url) const; | 69 int CheckPolicy(const GURL& url) const; |
70 void PromptForSetCookie(const GURL& url, const std::string& cookie_line); | 70 void PromptForSetCookie(const GURL& url, const std::string& cookie_line); |
71 void DidPromptForSetCookie(const std::string& host, int result, | 71 void DidPromptForSetCookie(const std::string& host, int result); |
72 bool remember); | |
73 | 72 |
74 // A map from hostname to callbacks awaiting a cookie policy response. | 73 // A map from hostname to callbacks awaiting a cookie policy response. |
75 // This map is only accessed on the IO thread. | 74 // This map is only accessed on the IO thread. |
76 HostCompletionsMap host_completions_map_; | 75 HostCompletionsMap host_completions_map_; |
77 | 76 |
78 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 77 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
79 }; | 78 }; |
80 | 79 |
81 #endif // CHROME_BROWSER_NET_CHROME_COOKIE_POLICY_H_ | 80 #endif // CHROME_BROWSER_NET_CHROME_COOKIE_POLICY_H_ |
OLD | NEW |