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

Side by Side Diff: chrome/browser/ui/pdf/pdf_tab_observer.h

Issue 8865004: Create CoreTabHelper, move remaining core TCW functionality into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lots of helpers now Created 9 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_PDF_PDF_TAB_OBSERVER_H_
6 #define CHROME_BROWSER_UI_PDF_PDF_TAB_OBSERVER_H_
7 #pragma once
8
9 #include "content/browser/tab_contents/tab_contents_observer.h"
10
11 class TabContentsWrapper;
12
13 // Per-tab class to handle PDF messages.
14 class PDFTabObserver : public TabContentsObserver {
15 public:
16 explicit PDFTabObserver(TabContentsWrapper* wrapper);
17 virtual ~PDFTabObserver();
18
19 private:
20 // TabContentsObserver overrides:
21 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
22
23 // Internal helpers ----------------------------------------------------------
24
25 // Message handlers.
26 void OnPDFHasUnsupportedFeature();
27
28 // Our owning TabContentsWrapper.
29 TabContentsWrapper* wrapper_;
30
31 DISALLOW_COPY_AND_ASSIGN(PDFTabObserver);
32 };
33
34 #endif // CHROME_BROWSER_UI_PDF_PDF_TAB_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698