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

Side by Side Diff: components/nacl/browser/pnacl_host.h

Issue 75463005: Move more files from chrome/browser/nacl_host/ to components/nacl/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NACL_HOST_PNACL_HOST_H_ 5 #ifndef COMPONENTS_NACL_BROWSER_PNACL_HOST_H_
6 #define CHROME_BROWSER_NACL_HOST_PNACL_HOST_H_ 6 #define COMPONENTS_NACL_BROWSER_PNACL_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "chrome/browser/nacl_host/nacl_file_host.h" 14 #include "components/nacl/browser/nacl_file_host.h"
15 #include "components/nacl/common/pnacl_types.h" 15 #include "components/nacl/common/pnacl_types.h"
16 #include "ipc/ipc_platform_file.h" 16 #include "ipc/ipc_platform_file.h"
17 17
18 namespace net { 18 namespace net {
19 class DrainableIOBuffer; 19 class DrainableIOBuffer;
20 } 20 }
21 21
22 namespace pnacl { 22 namespace pnacl {
23
23 class PnaclHostTest; 24 class PnaclHostTest;
24 class PnaclTranslationCache; 25 class PnaclTranslationCache;
25 }
26 26
27 // Shared state (translation cache) and common utilities (temp file creation) 27 // Shared state (translation cache) and common utilities (temp file creation)
28 // for all PNaCl translations. Unless otherwise specified, all methods should be 28 // for all PNaCl translations. Unless otherwise specified, all methods should be
29 // called on the IO thread. 29 // called on the IO thread.
30 class PnaclHost { 30 class PnaclHost {
31 public: 31 public:
32 typedef base::Callback<void(base::PlatformFile)> TempFileCallback; 32 typedef base::Callback<void(base::PlatformFile)> TempFileCallback;
33 typedef base::Callback<void(base::PlatformFile, bool is_hit)> NexeFdCallback; 33 typedef base::Callback<void(base::PlatformFile, bool is_hit)> NexeFdCallback;
34 34
35 static PnaclHost* GetInstance(); 35 static PnaclHost* GetInstance();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 int pending_backend_operations_; 166 int pending_backend_operations_;
167 CacheState cache_state_; 167 CacheState cache_state_;
168 base::FilePath temp_dir_; 168 base::FilePath temp_dir_;
169 scoped_ptr<pnacl::PnaclTranslationCache> disk_cache_; 169 scoped_ptr<pnacl::PnaclTranslationCache> disk_cache_;
170 PendingTranslationMap pending_translations_; 170 PendingTranslationMap pending_translations_;
171 base::ThreadChecker thread_checker_; 171 base::ThreadChecker thread_checker_;
172 base::WeakPtrFactory<PnaclHost> weak_factory_; 172 base::WeakPtrFactory<PnaclHost> weak_factory_;
173 DISALLOW_COPY_AND_ASSIGN(PnaclHost); 173 DISALLOW_COPY_AND_ASSIGN(PnaclHost);
174 }; 174 };
175 175
176 #endif // CHROME_BROWSER_NACL_HOST_PNACL_HOST_H_ 176 } // namespace pnacl
177
178 #endif // COMPONENTS_NACL_BROWSER_PNACL_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698