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

Side by Side Diff: third_party/WebKit/public/web/WebSharedWorkerRepositoryClient.h

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: same as PS6 Created 3 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 | « third_party/WebKit/public/web/WebSharedWorker.h ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 using DocumentID = unsigned long long; 50 using DocumentID = unsigned long long;
51 51
52 // Connects to a shared worker. 52 // Connects to a shared worker.
53 virtual void Connect(const WebURL& url, 53 virtual void Connect(const WebURL& url,
54 const WebString& name, 54 const WebString& name,
55 DocumentID id, 55 DocumentID id,
56 const WebString& content_security_policy, 56 const WebString& content_security_policy,
57 WebContentSecurityPolicyType, 57 WebContentSecurityPolicyType,
58 WebAddressSpace, 58 WebAddressSpace,
59 WebSharedWorkerCreationContextType, 59 WebSharedWorkerCreationContextType,
60 bool data_saver_enabled,
60 std::unique_ptr<WebMessagePortChannel>, 61 std::unique_ptr<WebMessagePortChannel>,
61 std::unique_ptr<blink::WebSharedWorkerConnectListener>) { 62 std::unique_ptr<blink::WebSharedWorkerConnectListener>) {
62 } 63 }
63 64
64 // Invoked when a document has been detached. DocumentID can be re-used after 65 // Invoked when a document has been detached. DocumentID can be re-used after
65 // documentDetached() is invoked. 66 // documentDetached() is invoked.
66 virtual void DocumentDetached(DocumentID) {} 67 virtual void DocumentDetached(DocumentID) {}
67 }; 68 };
68 69
69 } // namespace blink 70 } // namespace blink
70 71
71 #endif // WebSharedWorkerRepositoryClient_h 72 #endif // WebSharedWorkerRepositoryClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebSharedWorker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698