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

Side by Side Diff: ios/chrome/browser/browser_state/test_chrome_browser_state_isolated_context.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add header Created 4 years, 8 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 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 IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_ISOLATED_CONT EXT_H_ 5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_ISOLATED_CONT EXT_H_
6 #define IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_ISOLATED_CONT EXT_H_ 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_ISOLATED_CONT EXT_H_
7 7
noyau (Ping after 24h) 2016/04/07 13:34:04 #include <memory>
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" 9 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
10 #import "ios/public/provider/chrome/browser/ui/default_ios_web_view_factory.h" 10 #import "ios/public/provider/chrome/browser/ui/default_ios_web_view_factory.h"
11 11
12 // A TestChromeBrowserState with an isolated URLRequestContext. 12 // A TestChromeBrowserState with an isolated URLRequestContext.
13 class TestChromeBrowserStateWithIsolatedContext 13 class TestChromeBrowserStateWithIsolatedContext
14 : public TestChromeBrowserState { 14 : public TestChromeBrowserState {
15 public: 15 public:
16 TestChromeBrowserStateWithIsolatedContext(); 16 TestChromeBrowserStateWithIsolatedContext();
17 ~TestChromeBrowserStateWithIsolatedContext() override; 17 ~TestChromeBrowserStateWithIsolatedContext() override;
18 18
19 bool MainContextCalled() const; 19 bool MainContextCalled() const;
20 IOSWebViewFactoryExternalService SharingService(); 20 IOSWebViewFactoryExternalService SharingService();
21 21
22 static scoped_ptr<TestChromeBrowserStateWithIsolatedContext> Build(); 22 static std::unique_ptr<TestChromeBrowserStateWithIsolatedContext> Build();
23 23
24 // ChromeBrowserState: 24 // ChromeBrowserState:
25 net::URLRequestContextGetter* GetRequestContext() override; 25 net::URLRequestContextGetter* GetRequestContext() override;
26 net::URLRequestContextGetter* CreateIsolatedRequestContext( 26 net::URLRequestContextGetter* CreateIsolatedRequestContext(
27 const base::FilePath& partition_path) override; 27 const base::FilePath& partition_path) override;
28 28
29 private: 29 private:
30 bool main_context_called_; 30 bool main_context_called_;
31 scoped_refptr<net::URLRequestContextGetter> request_context_; 31 scoped_refptr<net::URLRequestContextGetter> request_context_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserStateWithIsolatedContext); 33 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserStateWithIsolatedContext);
34 }; 34 };
35 35
36 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_ISOLATED_C ONTEXT_H_ 36 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_ISOLATED_C ONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698