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

Side by Side Diff: content/public/browser/browser_context.h

Issue 12298037: Revert 183123 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1417/src/
Patch Set: Created 7 years, 10 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 | « content/content_tests.gypi ('k') | ui/base/clipboard/clipboard.h » ('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) 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_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/supports_user_data.h" 11 #include "base/supports_user_data.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "ui/base/clipboard/clipboard.h"
14 13
15 class GURL; 14 class GURL;
16 15
17 namespace base { 16 namespace base {
18 class FilePath; 17 class FilePath;
19 } 18 }
20 19
21 namespace fileapi { 20 namespace fileapi {
22 class ExternalMountPoints; 21 class ExternalMountPoints;
23 } 22 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // that the ResourceContext is ready. 87 // that the ResourceContext is ready.
89 static void EnsureResourceContextInitialized(BrowserContext* browser_context); 88 static void EnsureResourceContextInitialized(BrowserContext* browser_context);
90 89
91 // Tells the HTML5 objects on this context to persist their session state 90 // Tells the HTML5 objects on this context to persist their session state
92 // across the next restart. 91 // across the next restart.
93 static void SaveSessionState(BrowserContext* browser_context); 92 static void SaveSessionState(BrowserContext* browser_context);
94 93
95 // Tells the HTML5 objects on this context to purge any uneeded memory. 94 // Tells the HTML5 objects on this context to purge any uneeded memory.
96 static void PurgeMemory(BrowserContext* browser_context); 95 static void PurgeMemory(BrowserContext* browser_context);
97 96
98 // Returns a Clipboard::SourceTag (pointer) if |context| is OffTheRecord
99 // context. Otherwise, NULL. If the clipboard contains that SourceTag at the
100 // time of |context| destruction it will be flushed.
101 static ui::Clipboard::SourceTag GetMarkerForOffTheRecordContext(
102 BrowserContext* context);
103
104 virtual ~BrowserContext(); 97 virtual ~BrowserContext();
105 98
106 // Returns the path of the directory where this context's data is stored. 99 // Returns the path of the directory where this context's data is stored.
107 virtual base::FilePath GetPath() = 0; 100 virtual base::FilePath GetPath() = 0;
108 101
109 // Return whether this context is incognito. Default is false. 102 // Return whether this context is incognito. Default is false.
110 // This doesn't belong here; http://crbug.com/89628 103 // This doesn't belong here; http://crbug.com/89628
111 virtual bool IsOffTheRecord() const = 0; 104 virtual bool IsOffTheRecord() const = 0;
112 105
113 // Returns the request context information associated with this context. Call 106 // Returns the request context information associated with this context. Call
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 struct hash<content::BrowserContext*> { 160 struct hash<content::BrowserContext*> {
168 std::size_t operator()(content::BrowserContext* const& p) const { 161 std::size_t operator()(content::BrowserContext* const& p) const {
169 return reinterpret_cast<std::size_t>(p); 162 return reinterpret_cast<std::size_t>(p);
170 } 163 }
171 }; 164 };
172 165
173 } // namespace BASE_HASH_NAMESPACE 166 } // namespace BASE_HASH_NAMESPACE
174 #endif 167 #endif
175 168
176 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 169 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | ui/base/clipboard/clipboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698