| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // 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/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/in_process_webkit/dom_storage_dispatcher_host.h" | 8 #include "chrome/browser/in_process_webkit/dom_storage_dispatcher_host.h" |
| 9 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 WebKit::WebStorageNamespace* | 98 WebKit::WebStorageNamespace* |
| 99 BrowserWebKitClientImpl::createLocalStorageNamespace( | 99 BrowserWebKitClientImpl::createLocalStorageNamespace( |
| 100 const WebKit::WebString& path, unsigned quota) { | 100 const WebKit::WebString& path, unsigned quota) { |
| 101 // The "WebStorage" interface is used for renderer WebKit -> browser WebKit | 101 // The "WebStorage" interface is used for renderer WebKit -> browser WebKit |
| 102 // communication only. "WebStorageClient" will be used for browser WebKit -> | 102 // communication only. "WebStorageClient" will be used for browser WebKit -> |
| 103 // renderer WebKit. So this will never be implemented. | 103 // renderer WebKit. So this will never be implemented. |
| 104 NOTREACHED(); | 104 NOTREACHED(); |
| 105 return 0; | 105 return 0; |
| 106 } | 106 } |
| 107 | 107 |
| 108 WebKit::WebStorageNamespace* | |
| 109 BrowserWebKitClientImpl::createSessionStorageNamespace() { | |
| 110 // The "WebStorage" interface is used for renderer WebKit -> browser WebKit | |
| 111 // communication only. "WebStorageClient" will be used for browser WebKit -> | |
| 112 // renderer WebKit. So this will never be implemented. | |
| 113 NOTREACHED(); | |
| 114 return 0; | |
| 115 } | |
| 116 | |
| 117 void BrowserWebKitClientImpl::dispatchStorageEvent( | 108 void BrowserWebKitClientImpl::dispatchStorageEvent( |
| 118 const WebKit::WebString& key, const WebKit::WebString& old_value, | 109 const WebKit::WebString& key, const WebKit::WebString& old_value, |
| 119 const WebKit::WebString& new_value, const WebKit::WebString& origin, | 110 const WebKit::WebString& new_value, const WebKit::WebString& origin, |
| 120 const WebKit::WebURL& url, bool is_local_storage) { | 111 const WebKit::WebURL& url, bool is_local_storage) { |
| 121 // TODO(jorlow): Implement | 112 // TODO(jorlow): Implement |
| 122 if (!is_local_storage) | 113 if (!is_local_storage) |
| 123 return; | 114 return; |
| 124 | 115 |
| 125 DOMStorageDispatcherHost::DispatchStorageEvent(key, old_value, new_value, | 116 DOMStorageDispatcherHost::DispatchStorageEvent(key, old_value, new_value, |
| 126 origin, url, is_local_storage); | 117 origin, url, is_local_storage); |
| 127 } | 118 } |
| 128 | 119 |
| 129 WebKit::WebSharedWorkerRepository* | 120 WebKit::WebSharedWorkerRepository* |
| 130 BrowserWebKitClientImpl::sharedWorkerRepository() { | 121 BrowserWebKitClientImpl::sharedWorkerRepository() { |
| 131 NOTREACHED(); | 122 NOTREACHED(); |
| 132 return NULL; | 123 return NULL; |
| 133 } | 124 } |
| OLD | NEW |