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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 8804006: Reland 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix destruction issue 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/renderer/chrome_content_renderer_client.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) 2011 The Chromium Authors. All rights reserved. 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 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_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set>
9 #include <string> 10 #include <string>
10 11
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/string16.h" 14 #include "base/string16.h"
14 #include "content/public/renderer/content_renderer_client.h" 15 #include "content/public/renderer/content_renderer_client.h"
15 16
16 class ChromeRenderProcessObserver; 17 class ChromeRenderProcessObserver;
17 class Extension; 18 class Extension;
18 class ExtensionDispatcher; 19 class ExtensionDispatcher;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // For testing. 103 // For testing.
103 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); 104 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher);
104 105
105 // Called in low-memory conditions to dump the memory used by the spellchecker 106 // Called in low-memory conditions to dump the memory used by the spellchecker
106 // and start over. 107 // and start over.
107 void OnPurgeMemory(); 108 void OnPurgeMemory();
108 109
109 virtual void RegisterPPAPIInterfaceFactories( 110 virtual void RegisterPPAPIInterfaceFactories(
110 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; 111 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE;
111 112
113 virtual bool AllowSocketAPI(const GURL& url) OVERRIDE;
114
112 private: 115 private:
113 WebKit::WebPlugin* CreatePlugin( 116 WebKit::WebPlugin* CreatePlugin(
114 content::RenderView* render_view, 117 content::RenderView* render_view,
115 WebKit::WebFrame* frame, 118 WebKit::WebFrame* frame,
116 const WebKit::WebPluginParams& params); 119 const WebKit::WebPluginParams& params);
117 120
118 // Returns the extension for the given URL. Excludes extension objects for 121 // Returns the extension for the given URL. Excludes extension objects for
119 // bookmark apps, which do not use the app process model. 122 // bookmark apps, which do not use the app process model.
120 const Extension* GetNonBookmarkAppExtension(const ExtensionSet* extensions, 123 const Extension* GetNonBookmarkAppExtension(const ExtensionSet* extensions,
121 const GURL& url); 124 const GURL& url);
(...skipping 16 matching lines...) Expand all
138 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; 141 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_;
139 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; 142 scoped_ptr<ExtensionDispatcher> extension_dispatcher_;
140 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; 143 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_;
141 scoped_ptr<RendererNetPredictor> net_predictor_; 144 scoped_ptr<RendererNetPredictor> net_predictor_;
142 scoped_ptr<SpellCheck> spellcheck_; 145 scoped_ptr<SpellCheck> spellcheck_;
143 // The SpellCheckProvider is a RenderViewObserver, and handles its own 146 // The SpellCheckProvider is a RenderViewObserver, and handles its own
144 // destruction. 147 // destruction.
145 SpellCheckProvider* spellcheck_provider_; 148 SpellCheckProvider* spellcheck_provider_;
146 scoped_ptr<VisitedLinkSlave> visited_link_slave_; 149 scoped_ptr<VisitedLinkSlave> visited_link_slave_;
147 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; 150 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_;
151
152 // Set of origins that can use TCP/UDP private APIs from NaCl.
153 std::set<std::string> allowed_socket_origins_;
148 }; 154 };
149 155
150 } // namespace chrome 156 } // namespace chrome
151 157
152 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 158 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698