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

Side by Side Diff: content/renderer/dom_storage/local_storage_namespace.h

Issue 2382973002: Convert WebSecurityOrigin -> GURL without re-parsing the url (Closed)
Patch Set: rebase on #427122 Created 4 years, 1 month 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
« no previous file with comments | « content/child/storage_util.cc ('k') | content/renderer/dom_storage/local_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RENDERER_DOM_STORAGE_LOCAL_STORAGE_NAMESPACE_H_ 5 #ifndef CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_NAMESPACE_H_
6 #define CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_NAMESPACE_H_ 6 #define CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_NAMESPACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
9 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" 10 #include "third_party/WebKit/public/platform/WebStorageNamespace.h"
10 11
11 namespace content { 12 namespace content {
12 class LocalStorageCachedAreas; 13 class LocalStorageCachedAreas;
13 14
14 class LocalStorageNamespace : public blink::WebStorageNamespace { 15 class LocalStorageNamespace : public blink::WebStorageNamespace {
15 public: 16 public:
16 // |local_storage_cached_areas| is guaranteed to outlive this object. 17 // |local_storage_cached_areas| is guaranteed to outlive this object.
17 explicit LocalStorageNamespace( 18 explicit LocalStorageNamespace(
18 LocalStorageCachedAreas* local_storage_cached_areas); 19 LocalStorageCachedAreas* local_storage_cached_areas);
19 ~LocalStorageNamespace() override; 20 ~LocalStorageNamespace() override;
20 21
21 // blink::WebStorageNamespace: 22 // blink::WebStorageNamespace:
22 blink::WebStorageArea* createStorageArea( 23 blink::WebStorageArea* createStorageArea(
23 const blink::WebString& origin) override; 24 const blink::WebSecurityOrigin& origin) override;
24 bool isSameNamespace(const WebStorageNamespace&) const override; 25 bool isSameNamespace(const WebStorageNamespace&) const override;
25 26
26 private: 27 private:
27 LocalStorageCachedAreas* const local_storage_cached_areas_; 28 LocalStorageCachedAreas* const local_storage_cached_areas_;
28 29
29 DISALLOW_COPY_AND_ASSIGN(LocalStorageNamespace); 30 DISALLOW_COPY_AND_ASSIGN(LocalStorageNamespace);
30 }; 31 };
31 32
32 } // namespace content 33 } // namespace content
33 34
34 #endif // CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_NAMESPACE_H_ 35 #endif // CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_NAMESPACE_H_
OLDNEW
« no previous file with comments | « content/child/storage_util.cc ('k') | content/renderer/dom_storage/local_storage_namespace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698