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

Side by Side Diff: ios/web/public/app/web_main.h

Issue 1149323004: Upstream the iOS web_shell and supporting code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-thread-impl
Patch Set: Address review comments Created 5 years, 7 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 | « ios/web/ios_web_shell.gyp ('k') | ios/web/public/app/web_main_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_PUBLIC_APP_WEB_MAIN_H_
6 #define IOS_WEB_PUBLIC_APP_WEB_MAIN_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ios/web/public/app/web_main_delegate.h"
10
11 namespace web {
12 class WebMainRunner;
13
14 // Contains parameters passed to WebMain.
15 struct WebMainParams {
16 explicit WebMainParams(WebMainDelegate* delegate) : delegate(delegate) {}
17
18 WebMainDelegate* delegate;
19 };
20
21 // Encapsulates any setup and initialization that is needed by common
22 // web/ code. A single instance of this object should be created during app
23 // startup (or shortly after launch), and clients must ensure that this object
24 // is not destroyed while web/ code is still on the stack.
25 //
26 // Clients can add custom code to the startup flow by implementing the methods
27 // in WebMainDelegate and WebMainParts.
28 class WebMain {
29 public:
30 explicit WebMain(const WebMainParams& params);
31 ~WebMain();
32
33 private:
34 scoped_ptr<WebMainRunner> web_main_runner_;
35 };
36
37 } // namespace web
38
39 #endif // IOS_WEB_PUBLIC_APP_WEB_MAIN_H_
OLDNEW
« no previous file with comments | « ios/web/ios_web_shell.gyp ('k') | ios/web/public/app/web_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698