| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | |
| 11 #include <string> | 10 #include <string> |
| 12 #include <vector> | 11 #include <vector> |
| 13 | 12 |
| 14 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 15 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 16 #include "net/base/cookie_policy.h" | 15 #include "net/base/cookie_policy.h" |
| 17 | 16 |
| 18 class HostContentSettingsMap; | 17 class HostContentSettingsMap; |
| 19 | 18 |
| 20 // Implements CookiePolicy that may delay queries to ask the user to decide. | 19 // Implements CookiePolicy that may delay queries to ask the user to decide. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void DidPromptForSetCookie(const std::string& host, int result); | 71 void DidPromptForSetCookie(const std::string& host, int result); |
| 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 |