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

Side by Side Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h

Issue 2618313003: Use WebURLResponse to pass the navigation preload response from SWContextClient to FetchEvent. (Closed)
Patch Set: incorporated falken's comment Created 3 years, 11 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 | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 #include "public/platform/WebMessagePortChannel.h" 34 #include "public/platform/WebMessagePortChannel.h"
35 #include "public/platform/modules/serviceworker/WebServiceWorker.h" 35 #include "public/platform/modules/serviceworker/WebServiceWorker.h"
36 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h" 36 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h"
37 37
38 #include <memory> 38 #include <memory>
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class WebDataConsumerHandle; 42 class WebDataConsumerHandle;
43 class WebServiceWorkerRequest; 43 class WebServiceWorkerRequest;
44 class WebServiceWorkerResponse;
45 class WebString; 44 class WebString;
46 struct WebNotificationData; 45 struct WebNotificationData;
47 struct WebPaymentAppRequestData; 46 struct WebPaymentAppRequestData;
48 struct WebServiceWorkerClientInfo; 47 struct WebServiceWorkerClientInfo;
49 struct WebServiceWorkerError; 48 struct WebServiceWorkerError;
49 class WebURLResponse;
50 50
51 // A proxy interface to talk to the worker's GlobalScope implementation. 51 // A proxy interface to talk to the worker's GlobalScope implementation.
52 // All methods of this class must be called on the worker thread. 52 // All methods of this class must be called on the worker thread.
53 class WebServiceWorkerContextProxy { 53 class WebServiceWorkerContextProxy {
54 public: 54 public:
55 virtual ~WebServiceWorkerContextProxy() {} 55 virtual ~WebServiceWorkerContextProxy() {}
56 56
57 virtual void setRegistration( 57 virtual void setRegistration(
58 std::unique_ptr<WebServiceWorkerRegistration::Handle>) = 0; 58 std::unique_ptr<WebServiceWorkerRegistration::Handle>) = 0;
59 59
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // didHandleSyncEvent is called on the context client. 95 // didHandleSyncEvent is called on the context client.
96 virtual void dispatchSyncEvent(int syncEventID, 96 virtual void dispatchSyncEvent(int syncEventID,
97 const WebString& tag, 97 const WebString& tag,
98 LastChanceOption) = 0; 98 LastChanceOption) = 0;
99 99
100 virtual void dispatchPaymentRequestEvent(int eventID, 100 virtual void dispatchPaymentRequestEvent(int eventID,
101 const WebPaymentAppRequestData&) = 0; 101 const WebPaymentAppRequestData&) = 0;
102 102
103 virtual void onNavigationPreloadResponse( 103 virtual void onNavigationPreloadResponse(
104 int fetchEventID, 104 int fetchEventID,
105 std::unique_ptr<WebServiceWorkerResponse>, 105 std::unique_ptr<WebURLResponse>,
106 std::unique_ptr<WebDataConsumerHandle>) = 0; 106 std::unique_ptr<WebDataConsumerHandle>) = 0;
107 virtual void onNavigationPreloadError( 107 virtual void onNavigationPreloadError(
108 int fetchEventID, 108 int fetchEventID,
109 std::unique_ptr<WebServiceWorkerError>) = 0; 109 std::unique_ptr<WebServiceWorkerError>) = 0;
110 }; 110 };
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 #endif // WebServiceWorkerContextProxy_h 114 #endif // WebServiceWorkerContextProxy_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698