 Chromium Code Reviews
 Chromium Code Reviews Issue 11236025:
  Test that debug stub works with browser.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/
    
  
    Issue 11236025:
  Test that debug stub works with browser.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/| OLD | NEW | 
|---|---|
| 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_NACL_HOST_NACL_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_BROWSER_H_ | 
| 6 #define CHROME_BROWSER_NACL_HOST_NACL_BROWSER_H_ | 6 #define CHROME_BROWSER_NACL_HOST_NACL_BROWSER_H_ | 
| 7 | 7 | 
| 8 #include "base/bind.h" | 8 #include "base/bind.h" | 
| 9 #include "base/file_util_proxy.h" | 9 #include "base/file_util_proxy.h" | 
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 | 45 | 
| 46 // IRT file handle, only available when IsReady(). | 46 // IRT file handle, only available when IsReady(). | 
| 47 base::PlatformFile IrtFile() const; | 47 base::PlatformFile IrtFile() const; | 
| 48 | 48 | 
| 49 // Set match patterns which will be checked before enabling debug stub. | 49 // Set match patterns which will be checked before enabling debug stub. | 
| 50 void SetDebugPatterns(std::string debug_patterns); | 50 void SetDebugPatterns(std::string debug_patterns); | 
| 51 | 51 | 
| 52 // Returns whether NaCl application with this manifest URL should be debugged. | 52 // Returns whether NaCl application with this manifest URL should be debugged. | 
| 53 bool URLMatchesDebugPatterns(GURL manifest_url); | 53 bool URLMatchesDebugPatterns(GURL manifest_url); | 
| 54 | 54 | 
| 55 // Send message that new debug stub TCP port is allocated. | |
| 56 void DebugStubNewPortAllocated(int port); | |
| 
Mark Seaborn
2012/12/04 21:46:42
Please group these 4 methods together by removing
 
halyavin
2012/12/05 10:05:57
Done
 | |
| 57 | |
| 58 bool HasDebugStubPortListener(); | |
| 59 | |
| 60 void SetDebugStubPortListener(base::Callback<void(int)> listener); | |
| 61 | |
| 62 void ClearDebugStubPortListener(); | |
| 63 | |
| 55 bool ValidationCacheIsEnabled() const { | 64 bool ValidationCacheIsEnabled() const { | 
| 56 return validation_cache_is_enabled_; | 65 return validation_cache_is_enabled_; | 
| 57 } | 66 } | 
| 58 | 67 | 
| 59 const std::string& GetValidationCacheKey() const { | 68 const std::string& GetValidationCacheKey() const { | 
| 60 return validation_cache_.GetValidationCacheKey(); | 69 return validation_cache_.GetValidationCacheKey(); | 
| 61 } | 70 } | 
| 62 | 71 | 
| 63 bool QueryKnownToValidate(const std::string& signature, bool off_the_record); | 72 bool QueryKnownToValidate(const std::string& signature, bool off_the_record); | 
| 64 void SetKnownToValidate(const std::string& signature, bool off_the_record); | 73 void SetKnownToValidate(const std::string& signature, bool off_the_record); | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 FilePath irt_filepath_; | 113 FilePath irt_filepath_; | 
| 105 NaClResourceState irt_state_; | 114 NaClResourceState irt_state_; | 
| 106 std::vector<URLPattern> debug_patterns_; | 115 std::vector<URLPattern> debug_patterns_; | 
| 107 bool inverse_debug_patterns_; | 116 bool inverse_debug_patterns_; | 
| 108 NaClValidationCache validation_cache_; | 117 NaClValidationCache validation_cache_; | 
| 109 NaClValidationCache off_the_record_validation_cache_; | 118 NaClValidationCache off_the_record_validation_cache_; | 
| 110 FilePath validation_cache_file_path_; | 119 FilePath validation_cache_file_path_; | 
| 111 bool validation_cache_is_enabled_; | 120 bool validation_cache_is_enabled_; | 
| 112 bool validation_cache_is_modified_; | 121 bool validation_cache_is_modified_; | 
| 113 NaClResourceState validation_cache_state_; | 122 NaClResourceState validation_cache_state_; | 
| 123 base::Callback<void(int)> debug_stub_port_listener_; | |
| 114 | 124 | 
| 115 bool ok_; | 125 bool ok_; | 
| 116 | 126 | 
| 117 // A list of pending tasks to start NaCl processes. | 127 // A list of pending tasks to start NaCl processes. | 
| 118 std::vector<base::Closure> waiting_; | 128 std::vector<base::Closure> waiting_; | 
| 119 | 129 | 
| 120 DISALLOW_COPY_AND_ASSIGN(NaClBrowser); | 130 DISALLOW_COPY_AND_ASSIGN(NaClBrowser); | 
| 121 }; | 131 }; | 
| 122 | 132 | 
| 123 #endif // CHROME_BROWSER_NACL_HOST_NACL_BROWSER_H_ | 133 #endif // CHROME_BROWSER_NACL_HOST_NACL_BROWSER_H_ | 
| OLD | NEW |