| 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 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ | 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ |
| 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ | 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | |
| 9 #include "base/process.h" | 8 #include "base/process.h" |
| 10 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 11 #include "chrome/browser/in_process_webkit/storage_area.h" | 10 #include "chrome/browser/in_process_webkit/storage_area.h" |
| 12 #include "chrome/browser/in_process_webkit/webkit_context.h" | 11 #include "chrome/browser/in_process_webkit/webkit_context.h" |
| 13 #include "chrome/common/dom_storage_type.h" | 12 #include "chrome/common/dom_storage_type.h" |
| 14 #include "ipc/ipc_message.h" | 13 #include "ipc/ipc_message.h" |
| 15 | 14 |
| 16 class DOMStorageContext; | 15 class DOMStorageContext; |
| 17 class WebKitThread; | 16 class WebKitThread; |
| 18 | 17 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 bool ever_used_; | 102 bool ever_used_; |
| 104 | 103 |
| 105 // This is set once the Shutdown routine runs on the WebKit thread. Once | 104 // This is set once the Shutdown routine runs on the WebKit thread. Once |
| 106 // set, we should not process any more messages because storage_area_map_ | 105 // set, we should not process any more messages because storage_area_map_ |
| 107 // and storage_namespace_map_ contain pointers to deleted objects. | 106 // and storage_namespace_map_ contain pointers to deleted objects. |
| 108 bool shutdown_; | 107 bool shutdown_; |
| 109 | 108 |
| 110 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageDispatcherHost); | 109 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageDispatcherHost); |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 #if defined(COMPILER_GCC) | |
| 114 namespace __gnu_cxx { | |
| 115 | |
| 116 template<> | |
| 117 struct hash<DOMStorageDispatcherHost*> { | |
| 118 std::size_t operator()(DOMStorageDispatcherHost* const& p) const { | |
| 119 return reinterpret_cast<std::size_t>(p); | |
| 120 } | |
| 121 }; | |
| 122 | |
| 123 } // namespace __gnu_cxx | |
| 124 #endif | |
| 125 | |
| 126 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ | 112 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_DISPATCHER_HOST_H_ |
| OLD | NEW |