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

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

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "content/common/content_export.h"
17 18
18 class DOMStorageArea; 19 class DOMStorageArea;
19 class DOMStorageMessageFilter; 20 class DOMStorageMessageFilter;
20 class DOMStorageNamespace; 21 class DOMStorageNamespace;
21 class WebKitContext; 22 class WebKitContext;
22 23
23 namespace quota { 24 namespace quota {
24 class SpecialStoragePolicy; 25 class SpecialStoragePolicy;
25 } 26 }
26 27
27 // This is owned by WebKitContext and is all the dom storage information that's 28 // This is owned by WebKitContext and is all the dom storage information that's
28 // shared by all the DOMStorageMessageFilters that share the same browser 29 // shared by all the DOMStorageMessageFilters that share the same browser
29 // context. The specifics of responsibilities are fairly well documented here 30 // context. The specifics of responsibilities are fairly well documented here
30 // and in StorageNamespace and StorageArea. Everything is only to be accessed 31 // and in StorageNamespace and StorageArea. Everything is only to be accessed
31 // on the WebKit thread unless noted otherwise. 32 // on the WebKit thread unless noted otherwise.
32 // 33 //
33 // NOTE: Virtual methods facilitate mocking functions for testing. 34 // NOTE: Virtual methods facilitate mocking functions for testing.
34 class DOMStorageContext { 35 class CONTENT_EXPORT DOMStorageContext {
35 public: 36 public:
36 DOMStorageContext(WebKitContext* webkit_context, 37 DOMStorageContext(WebKitContext* webkit_context,
37 quota::SpecialStoragePolicy* special_storage_policy); 38 quota::SpecialStoragePolicy* special_storage_policy);
38 virtual ~DOMStorageContext(); 39 virtual ~DOMStorageContext();
39 40
40 // Invalid storage id. No storage session will ever report this value. 41 // Invalid storage id. No storage session will ever report this value.
41 // Used in DOMStorageMessageFilter::OnStorageAreaId when coping with 42 // Used in DOMStorageMessageFilter::OnStorageAreaId when coping with
42 // interactions with non-existent storage sessions. 43 // interactions with non-existent storage sessions.
43 static const int64 kInvalidStorageId = -1; 44 static const int64 kInvalidStorageId = -1;
44 45
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Maps ids to StorageNamespaces. We own these objects. 165 // Maps ids to StorageNamespaces. We own these objects.
165 typedef std::map<int64, DOMStorageNamespace*> StorageNamespaceMap; 166 typedef std::map<int64, DOMStorageNamespace*> StorageNamespaceMap;
166 StorageNamespaceMap storage_namespace_map_; 167 StorageNamespaceMap storage_namespace_map_;
167 168
168 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 169 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
169 170
170 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContext); 171 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContext);
171 }; 172 };
172 173
173 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_ 174 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698