Chromium Code Reviews

Side by Side Diff: chrome/browser/in_process_webkit/browser_webkitclient_impl.cc

Issue 5722003: Make DOMStorageDispatcherHost be a message filter (and rename it accordingly)... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get rid of _DELAY_HANDLE macro Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/in_process_webkit/browser_webkitclient_impl.h" 5 #include "chrome/browser/in_process_webkit/browser_webkitclient_impl.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/in_process_webkit/dom_storage_dispatcher_host.h" 9 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h"
10 #include "chrome/browser/in_process_webkit/indexed_db_key_utility_client.h" 10 #include "chrome/browser/in_process_webkit/indexed_db_key_utility_client.h"
11 #include "chrome/common/indexed_db_key.h" 11 #include "chrome/common/indexed_db_key.h"
12 #include "chrome/common/serialized_script_value.h" 12 #include "chrome/common/serialized_script_value.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebData.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
17 #include "webkit/glue/webkit_glue.h" 17 #include "webkit/glue/webkit_glue.h"
18 18
19 BrowserWebKitClientImpl::BrowserWebKitClientImpl() { 19 BrowserWebKitClientImpl::BrowserWebKitClientImpl() {
(...skipping 104 matching lines...)
124 } 124 }
125 125
126 void BrowserWebKitClientImpl::dispatchStorageEvent( 126 void BrowserWebKitClientImpl::dispatchStorageEvent(
127 const WebKit::WebString& key, const WebKit::WebString& old_value, 127 const WebKit::WebString& key, const WebKit::WebString& old_value,
128 const WebKit::WebString& new_value, const WebKit::WebString& origin, 128 const WebKit::WebString& new_value, const WebKit::WebString& origin,
129 const WebKit::WebURL& url, bool is_local_storage) { 129 const WebKit::WebURL& url, bool is_local_storage) {
130 // TODO(jorlow): Implement 130 // TODO(jorlow): Implement
131 if (!is_local_storage) 131 if (!is_local_storage)
132 return; 132 return;
133 133
134 DOMStorageDispatcherHost::DispatchStorageEvent(key, old_value, new_value, 134 DOMStorageMessageFilter::DispatchStorageEvent(key, old_value, new_value,
135 origin, url, is_local_storage); 135 origin, url, is_local_storage);
136 } 136 }
137 137
138 WebKit::WebSharedWorkerRepository* 138 WebKit::WebSharedWorkerRepository*
139 BrowserWebKitClientImpl::sharedWorkerRepository() { 139 BrowserWebKitClientImpl::sharedWorkerRepository() {
140 NOTREACHED(); 140 NOTREACHED();
141 return NULL; 141 return NULL;
142 } 142 }
143 143
144 int BrowserWebKitClientImpl::databaseDeleteFile( 144 int BrowserWebKitClientImpl::databaseDeleteFile(
145 const WebKit::WebString& vfs_file_name, bool sync_dir) { 145 const WebKit::WebString& vfs_file_name, bool sync_dir) {
(...skipping 20 matching lines...)
166 std_values.reserve(size); 166 std_values.reserve(size);
167 for (size_t i = 0; i < size; ++i) 167 for (size_t i = 0; i < size; ++i)
168 std_values.push_back(SerializedScriptValue(values[i])); 168 std_values.push_back(SerializedScriptValue(values[i]));
169 169
170 std::vector<IndexedDBKey> std_keys; 170 std::vector<IndexedDBKey> std_keys;
171 indexed_db_key_utility_client_->CreateIDBKeysFromSerializedValuesAndKeyPath( 171 indexed_db_key_utility_client_->CreateIDBKeysFromSerializedValuesAndKeyPath(
172 std_values, keyPath, &std_keys); 172 std_values, keyPath, &std_keys);
173 173
174 keys = std_keys; 174 keys = std_keys;
175 } 175 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/in_process_webkit/dom_storage_area.h » ('j') | ipc/ipc_message_impl_macros.h » ('J')

Powered by Google App Engine