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

Side by Side Diff: headless/lib/browser/headless_browser_impl.h

Issue 2223193003: Add an accessor to HeadlessBrowser for the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | headless/lib/browser/headless_browser_impl.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_
7 7
8 #include "headless/public/headless_browser.h" 8 #include "headless/public/headless_browser.h"
9 9
10 #include <memory> 10 #include <memory>
(...skipping 20 matching lines...) Expand all
31 31
32 class HeadlessBrowserImpl : public HeadlessBrowser { 32 class HeadlessBrowserImpl : public HeadlessBrowser {
33 public: 33 public:
34 HeadlessBrowserImpl( 34 HeadlessBrowserImpl(
35 const base::Callback<void(HeadlessBrowser*)>& on_start_callback, 35 const base::Callback<void(HeadlessBrowser*)>& on_start_callback,
36 HeadlessBrowser::Options options); 36 HeadlessBrowser::Options options);
37 ~HeadlessBrowserImpl() override; 37 ~HeadlessBrowserImpl() override;
38 38
39 // HeadlessBrowser implementation: 39 // HeadlessBrowser implementation:
40 HeadlessBrowserContext::Builder CreateBrowserContextBuilder() override; 40 HeadlessBrowserContext::Builder CreateBrowserContextBuilder() override;
41 scoped_refptr<base::SingleThreadTaskRunner> BrowserFileThread()
42 const override;
43 scoped_refptr<base::SingleThreadTaskRunner> BrowserIoThread() const override;
altimin 2016/08/09 10:38:15 nit: BrowserIOThread?
alex clarke (OOO till 29th) 2016/08/09 10:40:49 Done.
41 scoped_refptr<base::SingleThreadTaskRunner> BrowserMainThread() 44 scoped_refptr<base::SingleThreadTaskRunner> BrowserMainThread()
42 const override; 45 const override;
43 scoped_refptr<base::SingleThreadTaskRunner> BrowserFileThread()
44 const override;
45 46
46 void Shutdown() override; 47 void Shutdown() override;
47 48
48 std::vector<HeadlessBrowserContext*> GetAllBrowserContexts() override; 49 std::vector<HeadlessBrowserContext*> GetAllBrowserContexts() override;
49 HeadlessWebContents* GetWebContentsForDevToolsAgentHostId( 50 HeadlessWebContents* GetWebContentsForDevToolsAgentHostId(
50 const std::string& devtools_agent_host_id) override; 51 const std::string& devtools_agent_host_id) override;
51 HeadlessBrowserContext* GetBrowserContextForId( 52 HeadlessBrowserContext* GetBrowserContextForId(
52 const std::string& id) override; 53 const std::string& id) override;
53 54
54 void set_browser_main_parts(HeadlessBrowserMainParts* browser_main_parts); 55 void set_browser_main_parts(HeadlessBrowserMainParts* browser_main_parts);
(...skipping 29 matching lines...) Expand all
84 85
85 base::WeakPtrFactory<HeadlessBrowserImpl> weak_ptr_factory_; 86 base::WeakPtrFactory<HeadlessBrowserImpl> weak_ptr_factory_;
86 87
87 private: 88 private:
88 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserImpl); 89 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserImpl);
89 }; 90 };
90 91
91 } // namespace headless 92 } // namespace headless
92 93
93 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ 94 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | headless/lib/browser/headless_browser_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698