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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/profiles/profile_metrics.h ('k') | chrome/browser/safe_browsing/prefix_set.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_RENDERER_HOST_PEPPER_PEPPER_FLASH_DEVICE_ID_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_DEVICE_ID_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_DEVICE_ID_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_DEVICE_ID_HOST_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "ppapi/host/host_message_context.h" 10 #include "ppapi/host/host_message_context.h"
11 #include "ppapi/host/resource_host.h" 11 #include "ppapi/host/resource_host.h"
12 #include "ppapi/proxy/resource_message_params.h" 12 #include "ppapi/proxy/resource_message_params.h"
13 13
14 namespace base {
14 class FilePath; 15 class FilePath;
16 }
15 17
16 namespace content { 18 namespace content {
17 class BrowserPpapiHost; 19 class BrowserPpapiHost;
18 } 20 }
19 21
20 namespace chrome { 22 namespace chrome {
21 23
22 class PepperFlashDeviceIDHost : public ppapi::host::ResourceHost { 24 class PepperFlashDeviceIDHost : public ppapi::host::ResourceHost {
23 public: 25 public:
24 PepperFlashDeviceIDHost(content::BrowserPpapiHost* host, 26 PepperFlashDeviceIDHost(content::BrowserPpapiHost* host,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 58
57 // Called on the UI thread to get the file path corresponding to the 59 // Called on the UI thread to get the file path corresponding to the
58 // given render view. It will schedule the resulting file to be read on the 60 // given render view. It will schedule the resulting file to be read on the
59 // file thread. On error, it will pass the empty path to the file thread. 61 // file thread. On error, it will pass the empty path to the file thread.
60 void GetFilePathOnUIThread(int render_process_id, 62 void GetFilePathOnUIThread(int render_process_id,
61 int render_view_id); 63 int render_view_id);
62 64
63 // Called on the file thread to read the contents of the file and to 65 // Called on the file thread to read the contents of the file and to
64 // forward it to the IO thread. The path will be empty on error (in 66 // forward it to the IO thread. The path will be empty on error (in
65 // which case it will forward the empty string to the IO thread). 67 // which case it will forward the empty string to the IO thread).
66 void ReadDRMFileOnFileThread(const FilePath& path); 68 void ReadDRMFileOnFileThread(const base::FilePath& path);
67 69
68 // Called on the IO thread to call back into the device ID host with the 70 // Called on the IO thread to call back into the device ID host with the
69 // file contents, or the empty string on failure. 71 // file contents, or the empty string on failure.
70 void ReplyOnIOThread(const std::string& contents); 72 void ReplyOnIOThread(const std::string& contents);
71 73
72 // Access only on IO thread (this class is destroyed on the IO thread 74 // Access only on IO thread (this class is destroyed on the IO thread
73 // to ensure that this is deleted properly, since weak ptrs aren't 75 // to ensure that this is deleted properly, since weak ptrs aren't
74 // threadsafe). 76 // threadsafe).
75 base::WeakPtr<PepperFlashDeviceIDHost> host_; 77 base::WeakPtr<PepperFlashDeviceIDHost> host_;
76 78
(...skipping 16 matching lines...) Expand all
93 // context will have the appropriate routing info set for the reply. 95 // context will have the appropriate routing info set for the reply.
94 scoped_refptr<Fetcher> fetcher_; 96 scoped_refptr<Fetcher> fetcher_;
95 ppapi::host::ReplyMessageContext reply_context_; 97 ppapi::host::ReplyMessageContext reply_context_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(PepperFlashDeviceIDHost); 99 DISALLOW_COPY_AND_ASSIGN(PepperFlashDeviceIDHost);
98 }; 100 };
99 101
100 } // namespace chrome 102 } // namespace chrome
101 103
102 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_DEVICE_ID_HOST_H_ 104 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_DEVICE_ID_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_metrics.h ('k') | chrome/browser/safe_browsing/prefix_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698