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

Side by Side Diff: chrome/renderer/prefetch_helper.h

Issue 334483004: Enable resource prefetch from the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make change in chrome rather than content Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_PREFETCH_HELPER_H_
6 #define CHROME_RENDERER_PREFETCH_HELPER_H_
7
8 #include "content/public/renderer/render_frame_observer.h"
9 #include "url/gurl.h"
10
11 namespace prefetch {
12
13 // Helper class iniitiate prefetches on behalf of a RenderFrame.
jam 2014/06/13 16:44:37 nit: spelling
tburkard 2014/06/13 18:35:46 Done.
14 class PrefetchHelper : public content::RenderFrameObserver {
15 public:
16 explicit PrefetchHelper(content::RenderFrame* render_frame);
17 virtual ~PrefetchHelper();
18
19 private:
20 class PrefetchManager;
21
22 // RenderViewObserver implementation
23 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
24
25 void OnPrefetch(const GURL& url);
26
27 // A class keeping track of prefetches issued from the browser.
28 scoped_ptr<PrefetchManager> prefetch_manager_;
29
30 DISALLOW_COPY_AND_ASSIGN(PrefetchHelper);
31 };
32
33 } // namespace prefetch
34
35 #endif // CHROME_RENDERER_PREFETCH_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698