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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_cookie_helper.h

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 39
40 // Requests a single cookie to be deleted in the IO thread. This must be 40 // Requests a single cookie to be deleted in the IO thread. This must be
41 // called in the UI thread. 41 // called in the UI thread.
42 virtual void DeleteCookie(const net::CanonicalCookie& cookie); 42 virtual void DeleteCookie(const net::CanonicalCookie& cookie);
43 43
44 protected: 44 protected:
45 friend class base::RefCountedThreadSafe<BrowsingDataCookieHelper>; 45 friend class base::RefCountedThreadSafe<BrowsingDataCookieHelper>;
46 virtual ~BrowsingDataCookieHelper(); 46 virtual ~BrowsingDataCookieHelper();
47 47
48 net::URLRequestContextGetter* request_context_getter() { 48 net::URLRequestContextGetter* request_context_getter() {
49 return request_context_getter_; 49 return request_context_getter_.get();
50 } 50 }
51 51
52 private: 52 private:
53 // Fetch the cookies. This must be called in the IO thread. 53 // Fetch the cookies. This must be called in the IO thread.
54 void FetchCookiesOnIOThread(); 54 void FetchCookiesOnIOThread();
55 55
56 // Callback function for get cookie. This must be called in the IO thread. 56 // Callback function for get cookie. This must be called in the IO thread.
57 void OnFetchComplete(const net::CookieList& cookies); 57 void OnFetchComplete(const net::CookieList& cookies);
58 58
59 // Notifies the completion callback. This must be called in the UI thread. 59 // Notifies the completion callback. This must be called in the UI thread.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void AddCookie(const GURL& frame_url, 157 void AddCookie(const GURL& frame_url,
158 const net::CanonicalCookie& cookie); 158 const net::CanonicalCookie& cookie);
159 159
160 // Map that contains the cookie lists for all frame origins. 160 // Map that contains the cookie lists for all frame origins.
161 OriginCookieListMap origin_cookie_list_map_; 161 OriginCookieListMap origin_cookie_list_map_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataCookieHelper); 163 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataCookieHelper);
164 }; 164 };
165 165
166 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_ 166 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698