| 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 CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 SCRIPT_DOWNLOADING, | 63 SCRIPT_DOWNLOADING, |
| 64 SCRIPT_LOADED, | 64 SCRIPT_LOADED, |
| 65 SCRIPT_EVALUATED, | 65 SCRIPT_EVALUATED, |
| 66 STARTING_PHASE_MAX_VALUE, | 66 STARTING_PHASE_MAX_VALUE, |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 class Listener { | 69 class Listener { |
| 70 public: | 70 public: |
| 71 virtual ~Listener() {} | 71 virtual ~Listener() {} |
| 72 virtual void OnScriptLoaded() {} | 72 virtual void OnScriptLoaded() {} |
| 73 virtual void OnStarting() {} |
| 73 virtual void OnStarted() {} | 74 virtual void OnStarted() {} |
| 75 virtual void OnStopping() {} |
| 74 virtual void OnStopped(Status old_status) {} | 76 virtual void OnStopped(Status old_status) {} |
| 75 virtual void OnPausedAfterDownload() {} | 77 virtual void OnPausedAfterDownload() {} |
| 76 virtual void OnReportException(const base::string16& error_message, | 78 virtual void OnReportException(const base::string16& error_message, |
| 77 int line_number, | 79 int line_number, |
| 78 int column_number, | 80 int column_number, |
| 79 const GURL& source_url) {} | 81 const GURL& source_url) {} |
| 80 virtual void OnReportConsoleMessage(int source_identifier, | 82 virtual void OnReportConsoleMessage(int source_identifier, |
| 81 int message_level, | 83 int message_level, |
| 82 const base::string16& message, | 84 const base::string16& message, |
| 83 int line_number, | 85 int line_number, |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 base::TimeTicks start_timing_; | 245 base::TimeTicks start_timing_; |
| 244 | 246 |
| 245 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; | 247 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; |
| 246 | 248 |
| 247 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); | 249 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); |
| 248 }; | 250 }; |
| 249 | 251 |
| 250 } // namespace content | 252 } // namespace content |
| 251 | 253 |
| 252 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ | 254 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ |
| OLD | NEW |