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

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

Issue 11705003: Change PepperFlashBrowserHost to use CookieSettings to get the LSO settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 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
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_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
10 #include "ppapi/host/host_message_context.h" 11 #include "ppapi/host/host_message_context.h"
11 #include "ppapi/host/resource_host.h" 12 #include "ppapi/host/resource_host.h"
12 13
13 namespace base { 14 namespace base {
14 class Time; 15 class Time;
15 } 16 }
16 17
17 namespace content { 18 namespace content {
18 class BrowserPpapiHost; 19 class BrowserPpapiHost;
19 class ResourceContext; 20 class ResourceContext;
20 } 21 }
21 22
23 class CookieSettings;
22 class GURL; 24 class GURL;
23 25
24 namespace chrome { 26 namespace chrome {
25 27
26 class PepperFlashBrowserHost : public ppapi::host::ResourceHost { 28 class PepperFlashBrowserHost : public ppapi::host::ResourceHost {
27 public: 29 public:
28 PepperFlashBrowserHost(content::BrowserPpapiHost* host, 30 PepperFlashBrowserHost(content::BrowserPpapiHost* host,
29 PP_Instance instance, 31 PP_Instance instance,
30 PP_Resource resource); 32 PP_Resource resource);
31 virtual ~PepperFlashBrowserHost(); 33 virtual ~PepperFlashBrowserHost();
32 34
33 // ppapi::host::ResourceHost override. 35 // ppapi::host::ResourceHost override.
34 virtual int32_t OnResourceMessageReceived( 36 virtual int32_t OnResourceMessageReceived(
35 const IPC::Message& msg, 37 const IPC::Message& msg,
36 ppapi::host::HostMessageContext* context) OVERRIDE; 38 ppapi::host::HostMessageContext* context) OVERRIDE;
37 39
38 private: 40 private:
39 int32_t OnMsgUpdateActivity(ppapi::host::HostMessageContext* host_context); 41 int32_t OnMsgUpdateActivity(ppapi::host::HostMessageContext* host_context);
40 int32_t OnMsgGetLocalTimeZoneOffset( 42 int32_t OnMsgGetLocalTimeZoneOffset(
41 ppapi::host::HostMessageContext* host_context, 43 ppapi::host::HostMessageContext* host_context,
42 const base::Time& t); 44 const base::Time& t);
43 int32_t OnMsgGetLocalDataRestrictions( 45 int32_t OnMsgGetLocalDataRestrictions(
44 ppapi::host::HostMessageContext* context); 46 ppapi::host::HostMessageContext* context);
45 47
46 void GetLocalDataRestrictions(ppapi::host::ReplyMessageContext reply_context, 48 void GetLocalDataRestrictions(ppapi::host::ReplyMessageContext reply_context,
47 const GURL& document_url, 49 const GURL& document_url,
48 const GURL& plugin_url, 50 const GURL& plugin_url,
49 content::ResourceContext* resource_context); 51 scoped_refptr<CookieSettings> cookie_settings);
50 52
51 content::BrowserPpapiHost* host_; 53 content::BrowserPpapiHost* host_;
52 int render_process_id_; 54 int render_process_id_;
53 // For fetching the Flash LSO settings. 55 // For fetching the Flash LSO settings.
54 content::ResourceContext* resource_context_; 56 scoped_refptr<CookieSettings> cookie_settings_;
55 base::WeakPtrFactory<PepperFlashBrowserHost> weak_factory_; 57 base::WeakPtrFactory<PepperFlashBrowserHost> weak_factory_;
56 58
57 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost); 59 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost);
58 }; 60 };
59 61
60 } // namespace chrome 62 } // namespace chrome
61 63
62 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 64 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698