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

Side by Side Diff: content/browser/in_process_webkit/webkit_context.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 "content/browser/in_process_webkit/webkit_context.h" 5 #include "content/browser/in_process_webkit/webkit_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 10
11 using content::BrowserThread;
12
11 WebKitContext::WebKitContext( 13 WebKitContext::WebKitContext(
12 bool is_incognito, const FilePath& data_path, 14 bool is_incognito, const FilePath& data_path,
13 quota::SpecialStoragePolicy* special_storage_policy, 15 quota::SpecialStoragePolicy* special_storage_policy,
14 bool clear_local_state_on_exit, 16 bool clear_local_state_on_exit,
15 quota::QuotaManagerProxy* quota_manager_proxy, 17 quota::QuotaManagerProxy* quota_manager_proxy,
16 base::MessageLoopProxy* webkit_thread_loop) 18 base::MessageLoopProxy* webkit_thread_loop)
17 : data_path_(is_incognito ? FilePath() : data_path), 19 : data_path_(is_incognito ? FilePath() : data_path),
18 is_incognito_(is_incognito), 20 is_incognito_(is_incognito),
19 clear_local_state_on_exit_(clear_local_state_on_exit), 21 clear_local_state_on_exit_(clear_local_state_on_exit),
20 ALLOW_THIS_IN_INITIALIZER_LIST( 22 ALLOW_THIS_IN_INITIALIZER_LIST(
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 BrowserThread::PostTask( 85 BrowserThread::PostTask(
84 BrowserThread::WEBKIT, FROM_HERE, 86 BrowserThread::WEBKIT, FROM_HERE,
85 base::Bind(&WebKitContext::DeleteSessionStorageNamespace, this, 87 base::Bind(&WebKitContext::DeleteSessionStorageNamespace, this,
86 session_storage_namespace_id)); 88 session_storage_namespace_id));
87 return; 89 return;
88 } 90 }
89 91
90 dom_storage_context_->DeleteSessionStorageNamespace( 92 dom_storage_context_->DeleteSessionStorageNamespace(
91 session_storage_namespace_id); 93 session_storage_namespace_id);
92 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698