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

Side by Side Diff: chrome/browser/in_process_webkit/dom_storage_dispatcher_host.h

Issue 282005: Oops, dom_storage_dispatcher_host.h got left out of the change, and I introdu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/in_process_webkit/storage_namespace.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/in_process_webkit/storage_namespace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698