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

Side by Side Diff: chrome/browser/web_app_launcher.h

Issue 19746: Remove old web app code it's no longer needed. Simplifies startup a little. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_WEB_APP_LAUNCHER_H__
6 #define CHROME_BROWSER_WEB_APP_LAUNCHER_H__
7
8 #include "chrome/browser/gears_integration.h"
9 #include "googleurl/src/gurl.h"
10
11 class Profile;
12
13 // WebAppLauncher is used during startup to launch a web app (aka an installed
14 // app).
15 class WebAppLauncher {
16 public:
17 // Queries Gears for the name of the app, and when Gears callsback with the
18 // response creates a WebApp and Browser.
19 static void Launch(Profile* profile, const GURL& url);
20
21 private:
22 WebAppLauncher(Profile* profile, const GURL& url);
23
24 // Invoked from the Launch method. Queries Gears for the apps. Gears callback
25 // to OnGotApps.
26 void Run();
27
28 // Callback from Gears when list of apps is available. Creates WebApp and
29 // Browser.
30 void OnGotApps(GearsShortcutList* apps);
31
32 Profile* profile_;
33
34 // URL of the app.
35 const GURL url_;
36
37 DISALLOW_EVIL_CONSTRUCTORS(WebAppLauncher);
38 };
39
40 #endif // CHROME_BROWSER_WEB_APP_LAUNCHER_H__
41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698