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

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

Issue 9536013: Move |requires_authorization| flag for plug-ins out of webkit/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 9 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
« no previous file with comments | « chrome/browser/plugin_installer.cc ('k') | chrome/browser/plugin_observer.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_BROWSER_PLUGIN_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PLUGIN_OBSERVER_H_
6 #define CHROME_BROWSER_PLUGIN_OBSERVER_H_ 6 #define CHROME_BROWSER_PLUGIN_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
11 11
12 #if defined(ENABLE_PLUGIN_INSTALLATION) 12 #if defined(ENABLE_PLUGIN_INSTALLATION)
13 #include <map> 13 #include <map>
14 #endif 14 #endif
15 15
16 class GURL; 16 class GURL;
17 class InfoBarDelegate; 17 class InfoBarDelegate;
18 class PluginInstaller; 18 class PluginFinder;
19 class TabContentsWrapper; 19 class TabContentsWrapper;
20 20
21 #if defined(ENABLE_PLUGIN_INSTALLATION) 21 #if defined(ENABLE_PLUGIN_INSTALLATION)
22 class PluginInstaller; 22 class PluginInstaller;
23 class PluginPlaceholderHost; 23 class PluginPlaceholderHost;
24 #endif 24 #endif
25 25
26 class PluginObserver : public content::WebContentsObserver { 26 class PluginObserver : public content::WebContentsObserver {
27 public: 27 public:
28 explicit PluginObserver(TabContentsWrapper* tab_contents); 28 explicit PluginObserver(TabContentsWrapper* tab_contents);
(...skipping 10 matching lines...) Expand all
39 39
40 private: 40 private:
41 class PluginPlaceholderHost; 41 class PluginPlaceholderHost;
42 42
43 void OnBlockedUnauthorizedPlugin(const string16& name); 43 void OnBlockedUnauthorizedPlugin(const string16& name);
44 void OnBlockedOutdatedPlugin(int placeholder_id, 44 void OnBlockedOutdatedPlugin(int placeholder_id,
45 const std::string& identifier); 45 const std::string& identifier);
46 #if defined(ENABLE_PLUGIN_INSTALLATION) 46 #if defined(ENABLE_PLUGIN_INSTALLATION)
47 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); 47 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type);
48 48
49 void FoundMissingPlugin(int placeholder_id, 49 void FindMissingPlugin(int placeholder_id,
50 const std::string& mime_type, 50 const std::string& mime_type,
51 PluginInstaller* installer); 51 PluginFinder* plugin_finder);
52 void FoundPluginToUpdate(int placeholder_id, 52 void FindPluginToUpdate(int placeholder_id,
53 PluginInstaller* installer); 53 const std::string& identifier,
54 PluginFinder* plugin_finder);
54 void OnRemovePluginPlaceholderHost(int placeholder_id); 55 void OnRemovePluginPlaceholderHost(int placeholder_id);
55 #endif 56 #endif
56 void OnOpenAboutPlugins(); 57 void OnOpenAboutPlugins();
57 58
58 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; 59 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
59 60
60 TabContentsWrapper* tab_contents_; 61 TabContentsWrapper* tab_contents_;
61 62
62 #if defined(ENABLE_PLUGIN_INSTALLATION) 63 #if defined(ENABLE_PLUGIN_INSTALLATION)
63 // Stores all PluginPlaceholderHosts, keyed by their routing ID. 64 // Stores all PluginPlaceholderHosts, keyed by their routing ID.
64 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; 65 std::map<int, PluginPlaceholderHost*> plugin_placeholders_;
65 #endif 66 #endif
66 67
67 DISALLOW_COPY_AND_ASSIGN(PluginObserver); 68 DISALLOW_COPY_AND_ASSIGN(PluginObserver);
68 }; 69 };
69 70
70 #endif // CHROME_BROWSER_PLUGIN_OBSERVER_H_ 71 #endif // CHROME_BROWSER_PLUGIN_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugin_installer.cc ('k') | chrome/browser/plugin_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698