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: blimp/engine/browser/blimp_browser_main_parts.h

Issue 1403083002: [Blimp] Adds Blimp EngineSession and ClientSession skeleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « blimp/engine/browser/BUILD.gn ('k') | blimp/engine/browser/blimp_browser_main_parts.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 BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ 5 #ifndef BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_
6 #define BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ 6 #define BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "blimp/engine/browser/blimp_browser_context.h"
11 #include "content/public/browser/browser_main_parts.h" 10 #include "content/public/browser/browser_main_parts.h"
12 11
13 namespace net { 12 namespace net {
14 class NetLog; 13 class NetLog;
15 } 14 }
16 15
16 namespace content {
17 struct MainFunctionParams;
18 }
19
17 namespace blimp { 20 namespace blimp {
18 namespace engine { 21 namespace engine {
19 22
20 class BlimpScreen; 23 class BlimpBrowserContext;
24 class BlimpEngineSession;
21 25
22 class BlimpBrowserMainParts : public content::BrowserMainParts { 26 class BlimpBrowserMainParts : public content::BrowserMainParts {
23 public: 27 public:
24 explicit BlimpBrowserMainParts(const content::MainFunctionParams& parameters); 28 explicit BlimpBrowserMainParts(const content::MainFunctionParams& parameters);
25 ~BlimpBrowserMainParts() override; 29 ~BlimpBrowserMainParts() override;
26 30
27 // content::BrowserMainParts implementation. 31 // content::BrowserMainParts implementation.
28 void PreMainMessageLoopRun() override; 32 void PreMainMessageLoopRun() override;
29 void PostMainMessageLoopRun() override; 33 void PostMainMessageLoopRun() override;
30 int PreCreateThreads() override;
31 34
32 BlimpBrowserContext* browser_context() { return browser_context_.get(); } 35 BlimpBrowserContext* GetBrowserContext();
33 36
34 private: 37 private:
35 scoped_ptr<net::NetLog> net_log_; 38 scoped_ptr<net::NetLog> net_log_;
36 scoped_ptr<BlimpBrowserContext> browser_context_; 39 scoped_ptr<BlimpEngineSession> engine_session_;
37 scoped_ptr<BlimpScreen> screen_;
38 40
39 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); 41 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts);
40 }; 42 };
41 43
42 } // namespace engine 44 } // namespace engine
43 } // namespace blimp 45 } // namespace blimp
44 46
45 #endif // BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ 47 #endif // BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « blimp/engine/browser/BUILD.gn ('k') | blimp/engine/browser/blimp_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698