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

Side by Side Diff: chrome/browser/plugins/plugin_observer.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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
« no previous file with comments | « chrome/browser/plugins/plugin_installer.h ('k') | chrome/browser/plugins/plugins_field_trial.h » ('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_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "chrome/common/features.h" 13 #include "chrome/common/features.h"
14 #include "components/component_updater/component_updater_service.h" 14 #include "components/component_updater/component_updater_service.h"
15 #include "content/public/browser/web_contents_observer.h" 15 #include "content/public/browser/web_contents_observer.h"
16 #include "content/public/browser/web_contents_user_data.h" 16 #include "content/public/browser/web_contents_user_data.h"
17 17
18 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) 18 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
19 #include <map> 19 #include <map>
20 #endif 20 #endif
21 21
22 class GURL;
23 class PluginFinder;
24 class PluginMetadata;
25
26 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) 22 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
27 class PluginInstaller;
28 class PluginPlaceholderHost; 23 class PluginPlaceholderHost;
29 #endif 24 #endif
30 25
31 namespace content { 26 namespace content {
32 class WebContents; 27 class WebContents;
33 } 28 }
34 29
35 namespace infobars {
36 class InfoBarDelegate;
37 }
38
39 class PluginObserver : public content::WebContentsObserver, 30 class PluginObserver : public content::WebContentsObserver,
40 public content::WebContentsUserData<PluginObserver> { 31 public content::WebContentsUserData<PluginObserver> {
41 public: 32 public:
42 ~PluginObserver() override; 33 ~PluginObserver() override;
43 34
44 // content::WebContentsObserver implementation. 35 // content::WebContentsObserver implementation.
45 void PluginCrashed(const base::FilePath& plugin_path, 36 void PluginCrashed(const base::FilePath& plugin_path,
46 base::ProcessId plugin_pid) override; 37 base::ProcessId plugin_pid) override;
47 bool OnMessageReceived(const IPC::Message& message, 38 bool OnMessageReceived(const IPC::Message& message,
48 content::RenderFrameHost* render_frame_host) override; 39 content::RenderFrameHost* render_frame_host) override;
(...skipping 27 matching lines...) Expand all
76 67
77 // Stores all ComponentObservers, keyed by their routing ID. 68 // Stores all ComponentObservers, keyed by their routing ID.
78 std::map<int, std::unique_ptr<ComponentObserver>> component_observers_; 69 std::map<int, std::unique_ptr<ComponentObserver>> component_observers_;
79 70
80 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; 71 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
81 72
82 DISALLOW_COPY_AND_ASSIGN(PluginObserver); 73 DISALLOW_COPY_AND_ASSIGN(PluginObserver);
83 }; 74 };
84 75
85 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 76 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_installer.h ('k') | chrome/browser/plugins/plugins_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698