Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / printing / printing_ui_web_contents_observer.h
blob66d51e7fba2b897ac521a831a6412165d28ae181
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_
6 #define CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "content/public/browser/web_contents_observer.h"
10 #include "ui/gfx/native_widget_types.h"
12 // Wrapper used to keep track of the lifetime of a WebContents.
13 // Lives on the UI thread.
14 class PrintingUIWebContentsObserver : public content::WebContentsObserver {
15 public:
16 explicit PrintingUIWebContentsObserver(content::WebContents* web_contents);
18 // Return the parent NativeView of the observed WebContents.
19 gfx::NativeView GetParentView();
21 private:
22 DISALLOW_COPY_AND_ASSIGN(PrintingUIWebContentsObserver);
25 #endif // CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_