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

Side by Side Diff: chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h

Issue 10909138: Convert the async device ID getter to a chrome resource host (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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
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 CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_CHROME_BROWSER_PEPPER_HOST_FACTORY_H _
6 #define CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_CHROME_BROWSER_PEPPER_HOST_FACTORY_H _
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/host/host_factory.h" 9 #include "ppapi/host/host_factory.h"
10 10
11 namespace content { 11 namespace content {
12 class BrowserPpapiHost;
13 } // namespace content
12 14
13 class BrowserPpapiHostImpl; 15 namespace chrome {
14 16
15 class ContentBrowserPepperHostFactory : public ppapi::host::HostFactory { 17 class ChromeBrowserPepperHostFactory : public ppapi::host::HostFactory {
16 public: 18 public:
17 // Non-owning pointer to the filter must outlive this class. 19 // Non-owning pointer to the filter must outlive this class.
18 explicit ContentBrowserPepperHostFactory(BrowserPpapiHostImpl* host); 20 explicit ChromeBrowserPepperHostFactory(content::BrowserPpapiHost* host);
19 virtual ~ContentBrowserPepperHostFactory(); 21 virtual ~ChromeBrowserPepperHostFactory();
20 22
21 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( 23 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
22 ppapi::host::PpapiHost* host, 24 ppapi::host::PpapiHost* host,
23 const ppapi::proxy::ResourceMessageCallParams& params, 25 const ppapi::proxy::ResourceMessageCallParams& params,
24 PP_Instance instance, 26 PP_Instance instance,
25 const IPC::Message& message) OVERRIDE; 27 const IPC::Message& message) OVERRIDE;
26 28
27 private: 29 private:
28 // Non-owning pointer. 30 // Non-owning pointer.
29 BrowserPpapiHostImpl* host_; 31 content::BrowserPpapiHost* host_;
30 32
31 DISALLOW_COPY_AND_ASSIGN(ContentBrowserPepperHostFactory); 33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPepperHostFactory);
32 }; 34 };
33 35
34 } // namespace content 36 } // namespace chrome
35 37
36 #endif // CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ 38 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_CHROME_BROWSER_PEPPER_HOST_FACTOR Y_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/pepper/DEPS ('k') | chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698