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

Side by Side Diff: content/renderer/fetchers/associated_resource_fetcher_impl.h

Issue 2920663002: Class/struct layout optimization for blink Resource related classes (Closed)
Patch Set: Rebase Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_
6 #define CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ 6 #define CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/timer/timer.h" 14 #include "base/timer/timer.h"
15 #include "content/public/renderer/associated_resource_fetcher.h" 15 #include "content/public/renderer/associated_resource_fetcher.h"
16 #include "third_party/WebKit/public/platform/WebCachePolicy.h"
16 #include "third_party/WebKit/public/platform/WebURLRequest.h" 17 #include "third_party/WebKit/public/platform/WebURLRequest.h"
17 #include "third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h" 18 #include "third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h"
18 19
19 class GURL; 20 class GURL;
20 21
21 namespace blink { 22 namespace blink {
22 class WebAssociatedURLLoader; 23 class WebAssociatedURLLoader;
23 class WebFrame; 24 class WebFrame;
24 enum class WebCachePolicy;
25 } 25 }
26 26
27 namespace content { 27 namespace content {
28 28
29 class AssociatedResourceFetcherImpl : public AssociatedResourceFetcher { 29 class AssociatedResourceFetcherImpl : public AssociatedResourceFetcher {
30 public: 30 public:
31 // AssociatedResourceFetcher implementation: 31 // AssociatedResourceFetcher implementation:
32 void SetServiceWorkerMode( 32 void SetServiceWorkerMode(
33 blink::WebURLRequest::ServiceWorkerMode service_worker_mode) override; 33 blink::WebURLRequest::ServiceWorkerMode service_worker_mode) override;
34 void SetCachePolicy(blink::WebCachePolicy policy) override; 34 void SetCachePolicy(blink::WebCachePolicy policy) override;
(...skipping 26 matching lines...) Expand all
61 61
62 // Limit how long to wait for the server. 62 // Limit how long to wait for the server.
63 base::OneShotTimer timeout_timer_; 63 base::OneShotTimer timeout_timer_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(AssociatedResourceFetcherImpl); 65 DISALLOW_COPY_AND_ASSIGN(AssociatedResourceFetcherImpl);
66 }; 66 };
67 67
68 } // namespace content 68 } // namespace content
69 69
70 #endif // CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ 70 #endif // CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698