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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_setup_flow.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "chrome/browser/ui/webui/html_dialog_ui.h" 13 #include "chrome/browser/ui/webui/html_dialog_ui.h"
14 #include "chrome/common/net/gaia/gaia_auth_consumer.h" 14 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
15 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" 15 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
16 #include "chrome/common/net/gaia/google_service_auth_error.h" 16 #include "chrome/common/net/gaia/google_service_auth_error.h"
17 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
20 20
21 class GaiaAuthFetcher; 21 class GaiaAuthFetcher;
22 class CloudPrintServiceProcessHelper; 22 class CloudPrintServiceProcessHelper;
23 class CloudPrintSetupMessageHandler; 23 class CloudPrintSetupMessageHandler;
24 class ServiceProcessControl; 24 class ServiceProcessControl;
25 class GoogleServiceAuthError; 25 class GoogleServiceAuthError;
26 class Browser; 26 class Browser;
27 27
28 namespace base {
29 class DictionaryValue;
30 }
31
28 // This class is responsible for showing a cloud print setup dialog 32 // This class is responsible for showing a cloud print setup dialog
29 // and perform operations to fill the content of the dialog and handle 33 // and perform operations to fill the content of the dialog and handle
30 // user actions in the dialog. 34 // user actions in the dialog.
31 // 35 //
32 // It is responsible for: 36 // It is responsible for:
33 // 1. Showing the setup dialog. 37 // 1. Showing the setup dialog.
34 // 2. Providing the URL for the content of the dialog. 38 // 2. Providing the URL for the content of the dialog.
35 // 3. Providing a data source to provide the content HTML files. 39 // 3. Providing a data source to provide the content HTML files.
36 // 4. Providing a message handler to handle user actions in the Web UI. 40 // 4. Providing a message handler to handle user actions in the Web UI.
37 // 5. Responding to actions received in the message handler. 41 // 5. Responding to actions received in the message handler.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const std::string& password, 106 const std::string& password,
103 const std::string& captcha, 107 const std::string& captcha,
104 const std::string& access_code); 108 const std::string& access_code);
105 109
106 // Called by CloudPrintSetupMessageHandler when the user clicks on various 110 // Called by CloudPrintSetupMessageHandler when the user clicks on various
107 // pieces of UI during setup. 111 // pieces of UI during setup.
108 void OnUserClickedLearnMore(); 112 void OnUserClickedLearnMore();
109 void OnUserClickedPrintTestPage(); 113 void OnUserClickedPrintTestPage();
110 114
111 // The following methods control which iframe is visible. 115 // The following methods control which iframe is visible.
112 void ShowGaiaLogin(const DictionaryValue& args); 116 void ShowGaiaLogin(const base::DictionaryValue& args);
113 void ShowGaiaSuccessAndSettingUp(); 117 void ShowGaiaSuccessAndSettingUp();
114 void ShowGaiaFailed(const GoogleServiceAuthError& error); 118 void ShowGaiaFailed(const GoogleServiceAuthError& error);
115 void ShowSetupDone(); 119 void ShowSetupDone();
116 void ExecuteJavascriptInIFrame(const string16& iframe_xpath, 120 void ExecuteJavascriptInIFrame(const string16& iframe_xpath,
117 const string16& js); 121 const string16& js);
118 122
119 // Pointer to the Web UI. This is provided by CloudPrintSetupMessageHandler 123 // Pointer to the Web UI. This is provided by CloudPrintSetupMessageHandler
120 // when attached. We do not own the pointer, instead WebUI owns it's delegate 124 // when attached. We do not own the pointer, instead WebUI owns it's delegate
121 // (us) and controls our lifetime. 125 // (us) and controls our lifetime.
122 WebUI* web_ui_; 126 WebUI* web_ui_;
(...skipping 14 matching lines...) Expand all
137 bool setup_done_; 141 bool setup_done_;
138 142
139 // Handle to the ServiceProcessControl which talks to the service process. 143 // Handle to the ServiceProcessControl which talks to the service process.
140 ServiceProcessControl* process_control_; 144 ServiceProcessControl* process_control_;
141 base::WeakPtr<Delegate> delegate_; 145 base::WeakPtr<Delegate> delegate_;
142 146
143 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); 147 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow);
144 }; 148 };
145 149
146 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ 150 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.h ('k') | chrome/browser/printing/print_dialog_cloud_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698