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

Side by Side Diff: chrome/browser/net/chrome_cookie_policy.h

Issue 651023: Pass in the HostContentSettingsMap to the CookieModalDialog so IsValid can ma... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « chrome/browser/message_box_handler.cc ('k') | chrome/browser/net/chrome_cookie_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/message_box_handler.cc ('k') | chrome/browser/net/chrome_cookie_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698