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

Side by Side Diff: chrome/renderer/pepper/pepper_helper.h

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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
« no previous file with comments | « chrome/renderer/page_load_histograms.cc ('k') | chrome/renderer/pepper/pepper_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_PEPPER_PEPPER_HELPER_H_ 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_
6 #define CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ 6 #define CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/renderer/render_frame_observer.h" 10 #include "content/public/renderer/render_frame_observer.h"
11 11
12 // This class listens for Pepper creation events from the RenderFrame and 12 // This class listens for Pepper creation events from the RenderFrame and
13 // attaches the parts required for Chrome-specific plugin support. 13 // attaches the parts required for Chrome-specific plugin support.
14 class PepperHelper : public content::RenderFrameObserver { 14 class PepperHelper : public content::RenderFrameObserver {
15 public: 15 public:
16 explicit PepperHelper(content::RenderFrame* render_frame); 16 explicit PepperHelper(content::RenderFrame* render_frame);
17 ~PepperHelper() override; 17 ~PepperHelper() override;
18 18
19 // RenderFrameObserver. 19 // RenderFrameObserver.
20 void DidCreatePepperPlugin(content::RendererPpapiHost* host) override; 20 void DidCreatePepperPlugin(content::RendererPpapiHost* host) override;
21 void OnDestruct() override;
21 22
22 private: 23 private:
23 DISALLOW_COPY_AND_ASSIGN(PepperHelper); 24 DISALLOW_COPY_AND_ASSIGN(PepperHelper);
24 }; 25 };
25 26
26 #endif // CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ 27 #endif // CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/page_load_histograms.cc ('k') | chrome/renderer/pepper/pepper_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698