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

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

Issue 263683002: Set file tokens for NaCl main nexe if available to enable validation caching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: concat filepath literal Created 6 years, 7 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
« no previous file with comments | « chrome/test/nacl/nacl_browsertest_util.cc ('k') | components/nacl/browser/nacl_browser.cc » ('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 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // port listener, Chrome will allocate a currently-unused TCP port number for 67 // port listener, Chrome will allocate a currently-unused TCP port number for
68 // debug stub server instead of a fixed one. 68 // debug stub server instead of a fixed one.
69 69
70 // Notify listener that new debug stub TCP port is allocated. 70 // Notify listener that new debug stub TCP port is allocated.
71 void SetProcessGdbDebugStubPort(int process_id, int port); 71 void SetProcessGdbDebugStubPort(int process_id, int port);
72 void SetGdbDebugStubPortListener(base::Callback<void(int)> listener); 72 void SetGdbDebugStubPortListener(base::Callback<void(int)> listener);
73 void ClearGdbDebugStubPortListener(); 73 void ClearGdbDebugStubPortListener();
74 74
75 int GetProcessGdbDebugStubPort(int process_id); 75 int GetProcessGdbDebugStubPort(int process_id);
76 76
77 enum ValidationCacheStatus {
78 CACHE_MISS = 0,
79 CACHE_HIT,
80 CACHE_MAX
81 };
82
77 bool ValidationCacheIsEnabled() const { 83 bool ValidationCacheIsEnabled() const {
78 return validation_cache_is_enabled_; 84 return validation_cache_is_enabled_;
79 } 85 }
80 86
81 const std::string& GetValidationCacheKey() const { 87 const std::string& GetValidationCacheKey() const {
82 return validation_cache_.GetValidationCacheKey(); 88 return validation_cache_.GetValidationCacheKey();
83 } 89 }
84 90
85 // The NaCl singleton keeps information about NaCl executable files opened via 91 // The NaCl singleton keeps information about NaCl executable files opened via
86 // PPAPI. This allows the NaCl process to get trusted information about the 92 // PPAPI. This allows the NaCl process to get trusted information about the
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 scoped_ptr<NaClBrowserDelegate> browser_delegate_; 198 scoped_ptr<NaClBrowserDelegate> browser_delegate_;
193 199
194 std::deque<base::Time> crash_times_; 200 std::deque<base::Time> crash_times_;
195 201
196 DISALLOW_COPY_AND_ASSIGN(NaClBrowser); 202 DISALLOW_COPY_AND_ASSIGN(NaClBrowser);
197 }; 203 };
198 204
199 } // namespace nacl 205 } // namespace nacl
200 206
201 #endif // COMPONENTS_NACL_BROWSER_NACL_BROWSER_H_ 207 #endif // COMPONENTS_NACL_BROWSER_NACL_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/test/nacl/nacl_browsertest_util.cc ('k') | components/nacl/browser/nacl_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698