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

Side by Side Diff: extensions/browser/test_extensions_browser_client.h

Issue 308913006: Cleanup: Style fixes in extensions/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "extensions/browser/extensions_browser_client.h" 9 #include "extensions/browser/extensions_browser_client.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 // A simplified ExtensionsBrowserClient for a single normal browser context and 13 // A simplified ExtensionsBrowserClient for a single normal browser context and
14 // an optional incognito browser context associated with it. A test that uses 14 // an optional incognito browser context associated with it. A test that uses
15 // this class should call ExtensionsBrowserClient::Set() with its instance. 15 // this class should call ExtensionsBrowserClient::Set() with its instance.
16 class TestExtensionsBrowserClient : public ExtensionsBrowserClient { 16 class TestExtensionsBrowserClient : public ExtensionsBrowserClient {
17 public: 17 public:
18 // |context| is required and must not be an incognito context. 18 // |context| is required and must not be an incognito context.
19 TestExtensionsBrowserClient(content::BrowserContext* main_context); 19 explicit TestExtensionsBrowserClient(content::BrowserContext* main_context);
20 virtual ~TestExtensionsBrowserClient(); 20 virtual ~TestExtensionsBrowserClient();
21 21
22 // Associates an incognito context with |main_context_|. 22 // Associates an incognito context with |main_context_|.
23 void SetIncognitoContext(content::BrowserContext* incognito_context); 23 void SetIncognitoContext(content::BrowserContext* incognito_context);
24 24
25 // ExtensionsBrowserClient overrides: 25 // ExtensionsBrowserClient overrides:
26 virtual bool IsShuttingDown() OVERRIDE; 26 virtual bool IsShuttingDown() OVERRIDE;
27 virtual bool AreExtensionsDisabled(const base::CommandLine& command_line, 27 virtual bool AreExtensionsDisabled(const base::CommandLine& command_line,
28 content::BrowserContext* context) OVERRIDE; 28 content::BrowserContext* context) OVERRIDE;
29 virtual bool IsValidContext(content::BrowserContext* context) OVERRIDE; 29 virtual bool IsValidContext(content::BrowserContext* context) OVERRIDE;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 private: 79 private:
80 content::BrowserContext* main_context_; // Not owned. 80 content::BrowserContext* main_context_; // Not owned.
81 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. 81 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL.
82 82
83 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); 83 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient);
84 }; 84 };
85 85
86 } // namespace extensions 86 } // namespace extensions
87 87
88 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ 88 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698