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

Side by Side Diff: android_webview/browser/net/aw_cookie_store_wrapper.h

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const base::Time& delete_end, 73 const base::Time& delete_end,
74 const DeleteCallback& callback) override; 74 const DeleteCallback& callback) override;
75 void DeleteAllCreatedBetweenForHostAsync( 75 void DeleteAllCreatedBetweenForHostAsync(
76 const base::Time delete_begin, 76 const base::Time delete_begin,
77 const base::Time delete_end, 77 const base::Time delete_end,
78 const GURL& url, 78 const GURL& url,
79 const DeleteCallback& callback) override; 79 const DeleteCallback& callback) override;
80 void DeleteSessionCookiesAsync(const DeleteCallback& callback) override; 80 void DeleteSessionCookiesAsync(const DeleteCallback& callback) override;
81 void FlushStore(const base::Closure& callback) override; 81 void FlushStore(const base::Closure& callback) override;
82 void SetForceKeepSessionState() override; 82 void SetForceKeepSessionState() override;
83 scoped_ptr<CookieChangedSubscription> AddCallbackForCookie( 83 std::unique_ptr<CookieChangedSubscription> AddCallbackForCookie(
84 const GURL& url, 84 const GURL& url,
85 const std::string& name, 85 const std::string& name,
86 const CookieChangedCallback& callback) override; 86 const CookieChangedCallback& callback) override;
87 bool IsEphemeral() override; 87 bool IsEphemeral() override;
88 88
89 private: 89 private:
90 // Used by CreateWrappedCallback below. Takes an arugment of Type and posts 90 // Used by CreateWrappedCallback below. Takes an arugment of Type and posts
91 // a task to |task_runner| to invoke |callback| with that argument. If 91 // a task to |task_runner| to invoke |callback| with that argument. If
92 // |weak_cookie_store| is deleted before the task is run, the task will not 92 // |weak_cookie_store| is deleted before the task is run, the task will not
93 // be run. 93 // be run.
(...skipping 28 matching lines...) Expand all
122 // Runs |callback|. Used to prevent callbacks from being invoked after the 122 // Runs |callback|. Used to prevent callbacks from being invoked after the
123 // AwCookieStoreWrapper has been destroyed. 123 // AwCookieStoreWrapper has been destroyed.
124 void RunClosureCallback(const base::Closure& callback); 124 void RunClosureCallback(const base::Closure& callback);
125 125
126 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; 126 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_;
127 127
128 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_; 128 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_;
129 }; 129 };
130 130
131 } // namesspace android_webview 131 } // namesspace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698