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

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

Issue 3292019: Printing: Convert several wstrings to string16. (Closed)
Patch Set: Review fixes. Created 10 years, 3 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 (c) 2006-2008 The Chromium Authors. All rights reserved. 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 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_VIEW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/string16.h"
10 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 11 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
11 #include "chrome/common/notification_observer.h" 12 #include "chrome/common/notification_observer.h"
12 #include "chrome/common/notification_registrar.h" 13 #include "chrome/common/notification_registrar.h"
13 #include "printing/printed_pages_source.h" 14 #include "printing/printed_pages_source.h"
14 15
15 class RenderViewHost; 16 class RenderViewHost;
16 class TabContents; 17 class TabContents;
17 struct ViewHostMsg_DidPrintPage_Params; 18 struct ViewHostMsg_DidPrintPage_Params;
18 19
19 namespace printing { 20 namespace printing {
(...skipping 12 matching lines...) Expand all
32 virtual ~PrintViewManager(); 33 virtual ~PrintViewManager();
33 34
34 // Cancels the print job. 35 // Cancels the print job.
35 void Stop(); 36 void Stop();
36 37
37 // Terminates or cancels the print job if one was pending, depending on the 38 // Terminates or cancels the print job if one was pending, depending on the
38 // current state. Returns false if the renderer was not valuable. 39 // current state. Returns false if the renderer was not valuable.
39 bool OnRenderViewGone(RenderViewHost* render_view_host); 40 bool OnRenderViewGone(RenderViewHost* render_view_host);
40 41
41 // PrintedPagesSource implementation. 42 // PrintedPagesSource implementation.
42 virtual std::wstring RenderSourceName(); 43 virtual string16 RenderSourceName();
43 virtual GURL RenderSourceUrl(); 44 virtual GURL RenderSourceUrl();
44 45
45 // RenderViewHostDelegate::Printing implementation. 46 // RenderViewHostDelegate::Printing implementation.
46 virtual void DidGetPrintedPagesCount(int cookie, int number_pages); 47 virtual void DidGetPrintedPagesCount(int cookie, int number_pages);
47 virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params); 48 virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params);
48 49
49 // NotificationObserver implementation. 50 // NotificationObserver implementation.
50 virtual void Observe(NotificationType type, 51 virtual void Observe(NotificationType type,
51 const NotificationSource& source, 52 const NotificationSource& source,
52 const NotificationDetails& details); 53 const NotificationDetails& details);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // printing-related behavior. Still, access to the renderer is needed so a 129 // printing-related behavior. Still, access to the renderer is needed so a
129 // back reference is kept the the "parent object". 130 // back reference is kept the the "parent object".
130 TabContents& owner_; 131 TabContents& owner_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 133 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
133 }; 134 };
134 135
135 } // namespace printing 136 } // namespace printing
136 137
137 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 138 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job_unittest.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698