| OLD | NEW |
| 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 COMPONENTS_NACL_BROWSER_NACL_BROWSER_H_ | 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_BROWSER_H_ |
| 6 #define COMPONENTS_NACL_BROWSER_NACL_BROWSER_H_ | 6 #define COMPONENTS_NACL_BROWSER_NACL_BROWSER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 NaClResourceReady | 130 NaClResourceReady |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 NaClBrowser(); | 133 NaClBrowser(); |
| 134 ~NaClBrowser(); | 134 ~NaClBrowser(); |
| 135 | 135 |
| 136 void InitIrtFilePath(); | 136 void InitIrtFilePath(); |
| 137 | 137 |
| 138 void OpenIrtLibraryFile(); | 138 void OpenIrtLibraryFile(); |
| 139 | 139 |
| 140 void OnIrtOpened(base::PlatformFileError error_code, | 140 void OnIrtOpened(base::File::Error error_code, |
| 141 base::PassPlatformFile file, bool created); | 141 base::PassPlatformFile file, bool created); |
| 142 | 142 |
| 143 void InitValidationCacheFilePath(); | 143 void InitValidationCacheFilePath(); |
| 144 void EnsureValidationCacheAvailable(); | 144 void EnsureValidationCacheAvailable(); |
| 145 void OnValidationCacheLoaded(const std::string* data); | 145 void OnValidationCacheLoaded(const std::string* data); |
| 146 void RunWithoutValidationCache(); | 146 void RunWithoutValidationCache(); |
| 147 | 147 |
| 148 // Dispatch waiting tasks if we are ready, or if we know we'll never be ready. | 148 // Dispatch waiting tasks if we are ready, or if we know we'll never be ready. |
| 149 void CheckWaiting(); | 149 void CheckWaiting(); |
| 150 | 150 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 179 scoped_ptr<NaClBrowserDelegate> browser_delegate_; | 179 scoped_ptr<NaClBrowserDelegate> browser_delegate_; |
| 180 | 180 |
| 181 std::deque<base::Time> crash_times_; | 181 std::deque<base::Time> crash_times_; |
| 182 | 182 |
| 183 DISALLOW_COPY_AND_ASSIGN(NaClBrowser); | 183 DISALLOW_COPY_AND_ASSIGN(NaClBrowser); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 } // namespace nacl | 186 } // namespace nacl |
| 187 | 187 |
| 188 #endif // COMPONENTS_NACL_BROWSER_NACL_BROWSER_H_ | 188 #endif // COMPONENTS_NACL_BROWSER_NACL_BROWSER_H_ |
| OLD | NEW |