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

Side by Side Diff: android_webview/native/cookie_manager.cc

Issue 120593003: Move kFileScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "android_webview/native/cookie_manager.h" 5 #include "android_webview/native/cookie_manager.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_cookie_access_policy.h" 8 #include "android_webview/browser/aw_cookie_access_policy.h"
9 #include "android_webview/browser/net/init_native_callback.h" 9 #include "android_webview/browser/net/init_native_callback.h"
10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 completion->Signal(); 413 completion->Signal();
414 } 414 }
415 415
416 bool CookieManager::AllowFileSchemeCookies() { 416 bool CookieManager::AllowFileSchemeCookies() {
417 base::AutoLock lock(cookie_monster_lock_); 417 base::AutoLock lock(cookie_monster_lock_);
418 EnsureCookieMonsterExistsLocked(); 418 EnsureCookieMonsterExistsLocked();
419 return AllowFileSchemeCookiesLocked(); 419 return AllowFileSchemeCookiesLocked();
420 } 420 }
421 421
422 bool CookieManager::AllowFileSchemeCookiesLocked() { 422 bool CookieManager::AllowFileSchemeCookiesLocked() {
423 return cookie_monster_->IsCookieableScheme(chrome::kFileScheme); 423 return cookie_monster_->IsCookieableScheme(content::kFileScheme);
424 } 424 }
425 425
426 void CookieManager::SetAcceptFileSchemeCookies(bool accept) { 426 void CookieManager::SetAcceptFileSchemeCookies(bool accept) {
427 base::AutoLock lock(cookie_monster_lock_); 427 base::AutoLock lock(cookie_monster_lock_);
428 EnsureCookieMonsterExistsLocked(); 428 EnsureCookieMonsterExistsLocked();
429 SetAcceptFileSchemeCookiesLocked(accept); 429 SetAcceptFileSchemeCookiesLocked(accept);
430 } 430 }
431 431
432 void CookieManager::SetAcceptFileSchemeCookiesLocked(bool accept) { 432 void CookieManager::SetAcceptFileSchemeCookiesLocked(bool accept) {
433 // The docs on CookieManager base class state the API must not be called after 433 // The docs on CookieManager base class state the API must not be called after
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 AwBrowserContext* browser_context) { 497 AwBrowserContext* browser_context) {
498 return CookieManager::GetInstance()->CreateBrowserThreadCookieStore( 498 return CookieManager::GetInstance()->CreateBrowserThreadCookieStore(
499 browser_context); 499 browser_context);
500 } 500 }
501 501
502 bool RegisterCookieManager(JNIEnv* env) { 502 bool RegisterCookieManager(JNIEnv* env) {
503 return RegisterNativesImpl(env); 503 return RegisterNativesImpl(env);
504 } 504 }
505 505
506 } // android_webview namespace 506 } // android_webview namespace
OLDNEW
« no previous file with comments | « android_webview/native/android_protocol_handler.cc ('k') | chrome/browser/autocomplete/autocomplete_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698