| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 void OnNavigationPreloadError( | 128 void OnNavigationPreloadError( |
| 129 int fetch_event_id, | 129 int fetch_event_id, |
| 130 std::unique_ptr<WebServiceWorkerError>) override; | 130 std::unique_ptr<WebServiceWorkerError>) override; |
| 131 void OnNavigationPreloadComplete(int fetch_event_id, | 131 void OnNavigationPreloadComplete(int fetch_event_id, |
| 132 double completion_time, | 132 double completion_time, |
| 133 int64_t encoded_data_length, | 133 int64_t encoded_data_length, |
| 134 int64_t encoded_body_length, | 134 int64_t encoded_body_length, |
| 135 int64_t decoded_body_length) override; | 135 int64_t decoded_body_length) override; |
| 136 | 136 |
| 137 // WorkerReportingProxy overrides: | 137 // WorkerReportingProxy overrides: |
| 138 // TODO(lunalu): Deprecate UseCounter::Feature by WebFeature. |
| 138 void CountFeature(UseCounter::Feature) override; | 139 void CountFeature(UseCounter::Feature) override; |
| 140 void CountFeature(WebFeature feature) override { |
| 141 return CountFeature(static_cast<UseCounter::Feature>(feature)); |
| 142 } |
| 139 void CountDeprecation(UseCounter::Feature) override; | 143 void CountDeprecation(UseCounter::Feature) override; |
| 144 void CountDeprecation(WebFeature feature) override { |
| 145 return CountDeprecation(static_cast<UseCounter::Feature>(feature)); |
| 146 } |
| 140 void ReportException(const String& error_message, | 147 void ReportException(const String& error_message, |
| 141 std::unique_ptr<SourceLocation>, | 148 std::unique_ptr<SourceLocation>, |
| 142 int exception_id) override; | 149 int exception_id) override; |
| 143 void ReportConsoleMessage(MessageSource, | 150 void ReportConsoleMessage(MessageSource, |
| 144 MessageLevel, | 151 MessageLevel, |
| 145 const String& message, | 152 const String& message, |
| 146 SourceLocation*) override; | 153 SourceLocation*) override; |
| 147 void PostMessageToPageInspector(const String&) override; | 154 void PostMessageToPageInspector(const String&) override; |
| 148 void DidCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; | 155 void DidCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; |
| 149 void DidInitializeWorkerContext() override; | 156 void DidInitializeWorkerContext() override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 HashMap<int, CrossThreadPersistent<FetchEvent>> pending_preload_fetch_events_; | 196 HashMap<int, CrossThreadPersistent<FetchEvent>> pending_preload_fetch_events_; |
| 190 | 197 |
| 191 WebServiceWorkerContextClient* client_; | 198 WebServiceWorkerContextClient* client_; |
| 192 | 199 |
| 193 CrossThreadPersistent<ServiceWorkerGlobalScope> worker_global_scope_; | 200 CrossThreadPersistent<ServiceWorkerGlobalScope> worker_global_scope_; |
| 194 }; | 201 }; |
| 195 | 202 |
| 196 } // namespace blink | 203 } // namespace blink |
| 197 | 204 |
| 198 #endif // ServiceWorkerGlobalScopeProxy_h | 205 #endif // ServiceWorkerGlobalScopeProxy_h |
| OLD | NEW |