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

Side by Side Diff: content/browser/in_process_webkit/dom_storage_area.h

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_AREA_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_AREA_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_AREA_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_AREA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Creates the underlying WebStorageArea on demand. 43 // Creates the underlying WebStorageArea on demand.
44 void CreateWebStorageAreaIfNecessary(); 44 void CreateWebStorageAreaIfNecessary();
45 45
46 // The origin this storage area represents. 46 // The origin this storage area represents.
47 string16 origin_; 47 string16 origin_;
48 GURL origin_url_; 48 GURL origin_url_;
49 49
50 // The storage area we wrap. 50 // The storage area we wrap.
51 scoped_ptr<WebKit::WebStorageArea> storage_area_; 51 scoped_ptr<WebKit::WebStorageArea> storage_area_;
52 52
53 // Our storage area id. Unique to our parent WebKitContext. 53 // Our storage area id. Unique to our parent DOMStorageContext.
54 int64 id_; 54 int64 id_;
55 55
56 // The DOMStorageNamespace that owns us. 56 // The DOMStorageNamespace that owns us.
57 DOMStorageNamespace* owner_; 57 DOMStorageNamespace* owner_;
58 58
59 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageArea); 59 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageArea);
60 }; 60 };
61 61
62 #if defined(COMPILER_GCC) 62 #if defined(COMPILER_GCC)
63 #if defined(OS_ANDROID) 63 #if defined(OS_ANDROID)
64 // Android stlport uses std namespace 64 // Android stlport uses std namespace
65 namespace std { 65 namespace std {
66 #else 66 #else
67 namespace __gnu_cxx { 67 namespace __gnu_cxx {
68 #endif 68 #endif
69 69
70 template<> 70 template<>
71 struct hash<DOMStorageArea*> { 71 struct hash<DOMStorageArea*> {
72 std::size_t operator()(DOMStorageArea* const& p) const { 72 std::size_t operator()(DOMStorageArea* const& p) const {
73 return reinterpret_cast<std::size_t>(p); 73 return reinterpret_cast<std::size_t>(p);
74 } 74 }
75 }; 75 };
76 76
77 } // namespace __gnu_cxx 77 } // namespace __gnu_cxx
78 #endif 78 #endif
79 79
80 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_AREA_H_ 80 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_AREA_H_
OLDNEW
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/in_process_webkit/dom_storage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698