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

Side by Side Diff: chrome/browser/prerender/prerender_cookie_store.cc

Issue 676073003: Add AddCallbackForCookie method to CookieStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/prerender/prerender_cookie_store.h" 5 #include "chrome/browser/prerender/prerender_cookie_store.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 10
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // special to prevent this race condition. 226 // special to prevent this race condition.
227 cookie_conflict_ = true; 227 cookie_conflict_ = true;
228 if (!cookie_conflict_cb_.is_null()) { 228 if (!cookie_conflict_cb_.is_null()) {
229 BrowserThread::PostTask( 229 BrowserThread::PostTask(
230 BrowserThread::UI, 230 BrowserThread::UI,
231 FROM_HERE, 231 FROM_HERE,
232 cookie_conflict_cb_); 232 cookie_conflict_cb_);
233 } 233 }
234 } 234 }
235 235
236 scoped_ptr<CookieStore::CookieChangedSubscription>
237 PrerenderCookieStore::AddCallbackForCookie(
238 const GURL& url,
239 const std::string& name,
240 const CookieChangedCallback& callback) {
241 // Unimplemented.
242 // TODO(ellyjones): implement?
erikwright (departed) 2014/10/24 20:11:10 use "NOTIMPLEMENTED();" from base/logging.h so tha
243 return scoped_ptr<CookieChangedSubscription>();
244 }
245
236 PrerenderCookieStore::CookieOperation::CookieOperation() { 246 PrerenderCookieStore::CookieOperation::CookieOperation() {
237 } 247 }
238 248
239 PrerenderCookieStore::CookieOperation::~CookieOperation() { 249 PrerenderCookieStore::CookieOperation::~CookieOperation() {
240 } 250 }
241 251
242 } // namespace prerender 252 } // namespace prerender
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698