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

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

Issue 8302016: Make GTK and Aura parts orthogonal to OS parts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/browser_main.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) 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_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_BROWSER_BROWSER_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 10
(...skipping 24 matching lines...) Expand all
35 class WebKitContext; 35 class WebKitContext;
36 36
37 namespace content { 37 namespace content {
38 38
39 class ResourceContext; 39 class ResourceContext;
40 40
41 // This class holds the context needed for a browsing session. 41 // This class holds the context needed for a browsing session.
42 // It lives on the UI thread. 42 // It lives on the UI thread.
43 class BrowserContext { 43 class BrowserContext {
44 public: 44 public:
45 virtual ~BrowserContext() {}; 45 virtual ~BrowserContext() {}
46 46
47 // Returns the path of the directory where this context's data is stored. 47 // Returns the path of the directory where this context's data is stored.
48 virtual FilePath GetPath() = 0; 48 virtual FilePath GetPath() = 0;
49 49
50 // Return whether this context is incognito. Default is false. 50 // Return whether this context is incognito. Default is false.
51 // This doesn't belong here; http://crbug.com/89628 51 // This doesn't belong here; http://crbug.com/89628
52 virtual bool IsOffTheRecord() = 0; 52 virtual bool IsOffTheRecord() = 0;
53 53
54 // Retrieves a pointer to the SSLHostState associated with this context. 54 // Retrieves a pointer to the SSLHostState associated with this context.
55 // The SSLHostState is lazily created the first time that this method is 55 // The SSLHostState is lazily created the first time that this method is
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 struct hash<content::BrowserContext*> { 113 struct hash<content::BrowserContext*> {
114 std::size_t operator()(content::BrowserContext* const& p) const { 114 std::size_t operator()(content::BrowserContext* const& p) const {
115 return reinterpret_cast<std::size_t>(p); 115 return reinterpret_cast<std::size_t>(p);
116 } 116 }
117 }; 117 };
118 118
119 } // namespace __gnu_cxx 119 } // namespace __gnu_cxx
120 #endif 120 #endif
121 121
122 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ 122 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/browser_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698