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

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

Issue 492623004: Put PrintingUIWebContentsObserver and PrintingMessageFilter into printing namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_
6 #define CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 namespace printing {
13
12 // Wrapper used to keep track of the lifetime of a WebContents. 14 // Wrapper used to keep track of the lifetime of a WebContents.
13 // Lives on the UI thread. 15 // Lives on the UI thread.
14 class PrintingUIWebContentsObserver : public content::WebContentsObserver { 16 class PrintingUIWebContentsObserver : public content::WebContentsObserver {
15 public: 17 public:
16 explicit PrintingUIWebContentsObserver(content::WebContents* web_contents); 18 explicit PrintingUIWebContentsObserver(content::WebContents* web_contents);
17 virtual ~PrintingUIWebContentsObserver(); 19 virtual ~PrintingUIWebContentsObserver();
18 20
19 // Return the parent NativeView of the observed WebContents. 21 // Return the parent NativeView of the observed WebContents.
20 gfx::NativeView GetParentView(); 22 gfx::NativeView GetParentView();
21 23
22 private: 24 private:
23 DISALLOW_COPY_AND_ASSIGN(PrintingUIWebContentsObserver); 25 DISALLOW_COPY_AND_ASSIGN(PrintingUIWebContentsObserver);
24 }; 26 };
25 27
28 } // namespace printing
29
26 #endif // CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_ 30 #endif // CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/browser/printing/printing_ui_web_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698