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

Side by Side Diff: ios/web_view/internal/criwv_web_main_parts.h

Issue 2643773005: Upstream ios/web_view source code. (Closed)
Patch Set: Created 3 years, 11 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
(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_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_
6 #define IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_
7
8 #include "ios/web/public/app/web_main_parts.h"
9
10 #include <memory>
11
12 @protocol CRIWVDelegate;
13
14 namespace ios_web_view {
15 class CRIWVBrowserState;
16
17 // CRIWV-specific implementation of WebMainParts.
18 class CRIWVWebMainParts : public web::WebMainParts {
19 public:
20 explicit CRIWVWebMainParts(id<CRIWVDelegate> delegate);
21 ~CRIWVWebMainParts() override;
22
23 // WebMainParts implementation.
24 void PreMainMessageLoopRun() override;
25
26 // Returns the CRIWVBrowserState for this embedder.
27 CRIWVBrowserState* browser_state() const { return browser_state_.get(); }
28
29 private:
30 // This object's delegate.
31 id<CRIWVDelegate> delegate_;
32
33 // The BrowserState for this embedder.
34 std::unique_ptr<CRIWVBrowserState> browser_state_;
35 };
36
37 } // namespace ios_web_view
38
39 #endif // IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698