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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PRINT_DIALOG_CLOUD_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ref_counted_memory.h" 12 #include "base/memory/ref_counted_memory.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
15 15
16 class CommandLine; 16 class CommandLine;
17 class PrefRegistrySyncable;
18 17
19 namespace base { 18 namespace base {
20 class FilePath; 19 class FilePath;
21 } 20 }
22 21
23 namespace content { 22 namespace content {
24 class BrowserContext; 23 class BrowserContext;
25 } 24 }
26 25
26 namespace user_prefs {
27 class PrefRegistrySyncable;
28 }
29
27 namespace print_dialog_cloud { 30 namespace print_dialog_cloud {
28 31
29 void RegisterUserPrefs(PrefRegistrySyncable* registry); 32 void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
30 33
31 // Creates a print dialog to print a file on disk. 34 // Creates a print dialog to print a file on disk.
32 // Called on the FILE or UI thread. Even though this may start up a modal 35 // Called on the FILE or UI thread. Even though this may start up a modal
33 // dialog, it will return immediately. The dialog is handled asynchronously. 36 // dialog, it will return immediately. The dialog is handled asynchronously.
34 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal 37 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal
35 // to. 38 // to.
36 void CreatePrintDialogForFile(content::BrowserContext* browser_context, 39 void CreatePrintDialogForFile(content::BrowserContext* browser_context,
37 gfx::NativeWindow modal_parent, 40 gfx::NativeWindow modal_parent,
38 const base::FilePath& path_to_file, 41 const base::FilePath& path_to_file,
39 const string16& print_job_title, 42 const string16& print_job_title,
(...skipping 23 matching lines...) Expand all
63 // dialog, it will return immediately. The dialog is handled asynchronously. 66 // dialog, it will return immediately. The dialog is handled asynchronously.
64 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal 67 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal
65 // to. 68 // to.
66 void CreateCloudPrintSigninDialog(content::BrowserContext* browser_context, 69 void CreateCloudPrintSigninDialog(content::BrowserContext* browser_context,
67 gfx::NativeWindow modal_parent, 70 gfx::NativeWindow modal_parent,
68 const base::Closure& callback); 71 const base::Closure& callback);
69 72
70 } // end namespace 73 } // end namespace
71 74
72 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ 75 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_url.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698