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

Side by Side Diff: chrome/browser/ui/app_list/custom_launcher_page_contents.h

Issue 2628883002: Move CustomLauncherPageContents from apps to c/b/ui/app_list (Closed)
Patch Set: rebase 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
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 APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_
6 #define APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
11 11
12 class GURL; 12 class GURL;
13 13
14 namespace content { 14 namespace content {
15 class BrowserContext; 15 class BrowserContext;
16 } 16 }
17 17
18 namespace extensions { 18 namespace extensions {
19 class AppDelegate; 19 class AppDelegate;
20 class AppWebContentsHelper; 20 class AppWebContentsHelper;
21 } 21 }
22 22
23 namespace apps { 23 namespace app_list {
24 24
25 // Manages the web contents for extension-hosted launcher pages. The 25 // Manages the web contents for extension-hosted launcher pages. The
26 // implementation for this class should create and maintain the WebContents for 26 // implementation for this class should create and maintain the WebContents for
27 // the page, and handle any message passing between the web contents and the 27 // the page, and handle any message passing between the web contents and the
28 // extension system. 28 // extension system.
29 class CustomLauncherPageContents : public content::WebContentsDelegate { 29 class CustomLauncherPageContents : public content::WebContentsDelegate {
30 public: 30 public:
31 CustomLauncherPageContents( 31 CustomLauncherPageContents(
32 std::unique_ptr<extensions::AppDelegate> app_delegate, 32 std::unique_ptr<extensions::AppDelegate> app_delegate,
33 const std::string& extension_id); 33 const std::string& extension_id);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 private: 72 private:
73 std::unique_ptr<content::WebContents> web_contents_; 73 std::unique_ptr<content::WebContents> web_contents_;
74 std::unique_ptr<extensions::AppDelegate> app_delegate_; 74 std::unique_ptr<extensions::AppDelegate> app_delegate_;
75 std::unique_ptr<extensions::AppWebContentsHelper> helper_; 75 std::unique_ptr<extensions::AppWebContentsHelper> helper_;
76 76
77 std::string extension_id_; 77 std::string extension_id_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageContents); 79 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageContents);
80 }; 80 };
81 81
82 } // namespace apps 82 } // namespace app_list
83 83
84 #endif // APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ 84 #endif // CHROME_BROWSER_UI_APP_LIST_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/custom_launcher_page_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698