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

Side by Side Diff: content/common/service_worker/service_worker_types.cc

Issue 1108273002: Add Client Attribute to FetchEvent- Chromium Side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/common/service_worker/service_worker_types.h" 5 #include "content/common/service_worker/service_worker_types.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 const char kServiceWorkerRegisterErrorPrefix[] = 9 const char kServiceWorkerRegisterErrorPrefix[] =
10 "Failed to register a ServiceWorker: "; 10 "Failed to register a ServiceWorker: ";
(...skipping 11 matching lines...) Expand all
22 blob_size(0), 22 blob_size(0),
23 credentials_mode(FETCH_CREDENTIALS_MODE_OMIT), 23 credentials_mode(FETCH_CREDENTIALS_MODE_OMIT),
24 is_reload(false) { 24 is_reload(false) {
25 } 25 }
26 26
27 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest( 27 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest(
28 const GURL& url, 28 const GURL& url,
29 const std::string& method, 29 const std::string& method,
30 const ServiceWorkerHeaderMap& headers, 30 const ServiceWorkerHeaderMap& headers,
31 const Referrer& referrer, 31 const Referrer& referrer,
32 bool is_reload) 32 bool is_reload,
33 const ServiceWorkerClientInfo& client)
jsbell 2015/05/06 16:53:43 nit: extra space
Paritosh Kumar 2015/05/07 12:03:13 I'm not sure this is extra space or just due to ne
jsbell 2015/05/07 16:09:48 There are two spaces after 'const' - should just b
Paritosh Kumar 2015/05/07 16:54:54 Ohhk, extra space is in between, not expected. Tha
33 : mode(FETCH_REQUEST_MODE_NO_CORS), 34 : mode(FETCH_REQUEST_MODE_NO_CORS),
34 request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED), 35 request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED),
35 frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE), 36 frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE),
36 url(url), 37 url(url),
37 method(method), 38 method(method),
38 headers(headers), 39 headers(headers),
39 blob_size(0), 40 blob_size(0),
40 referrer(referrer), 41 referrer(referrer),
41 credentials_mode(FETCH_CREDENTIALS_MODE_OMIT), 42 credentials_mode(FETCH_CREDENTIALS_MODE_OMIT),
42 is_reload(is_reload) { 43 is_reload(is_reload),
44 client(client) {
43 } 45 }
44 46
45 ServiceWorkerFetchRequest::~ServiceWorkerFetchRequest() {} 47 ServiceWorkerFetchRequest::~ServiceWorkerFetchRequest() {}
46 48
47 ServiceWorkerResponse::ServiceWorkerResponse() 49 ServiceWorkerResponse::ServiceWorkerResponse()
48 : status_code(0), 50 : status_code(0),
49 response_type(blink::WebServiceWorkerResponseTypeOpaque), 51 response_type(blink::WebServiceWorkerResponseTypeOpaque),
50 blob_size(0) { 52 blob_size(0) {
51 } 53 }
52 54
(...skipping 27 matching lines...) Expand all
80 : handle_id(kInvalidServiceWorkerRegistrationHandleId), 82 : handle_id(kInvalidServiceWorkerRegistrationHandleId),
81 registration_id(kInvalidServiceWorkerRegistrationId) { 83 registration_id(kInvalidServiceWorkerRegistrationId) {
82 } 84 }
83 85
84 ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions() 86 ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions()
85 : client_type(blink::WebServiceWorkerClientTypeWindow), 87 : client_type(blink::WebServiceWorkerClientTypeWindow),
86 include_uncontrolled(false) { 88 include_uncontrolled(false) {
87 } 89 }
88 90
89 } // namespace content 91 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698