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

Side by Side Diff: third_party/WebKit/Source/web/PrerendererClientImpl.cpp

Issue 2645303002: Use a new Supplement constructor for supplements in core/ (Closed)
Patch Set: temp 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 20 matching lines...) Expand all
31 31
32 #include "web/PrerendererClientImpl.h" 32 #include "web/PrerendererClientImpl.h"
33 33
34 #include "platform/Prerender.h" 34 #include "platform/Prerender.h"
35 #include "public/platform/WebPrerender.h" 35 #include "public/platform/WebPrerender.h"
36 #include "public/web/WebPrerendererClient.h" 36 #include "public/web/WebPrerendererClient.h"
37 #include "web/WebViewImpl.h" 37 #include "web/WebViewImpl.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 PrerendererClientImpl::PrerendererClientImpl(WebPrerendererClient* client) 41 PrerendererClientImpl::PrerendererClientImpl(Page& page,
42 : m_client(client) {} 42 WebPrerendererClient* client)
43 : PrerendererClient(page), m_client(client) {}
43 44
44 void PrerendererClientImpl::willAddPrerender(Prerender* prerender) { 45 void PrerendererClientImpl::willAddPrerender(Prerender* prerender) {
45 if (!m_client) 46 if (!m_client)
46 return; 47 return;
47 WebPrerender webPrerender(prerender); 48 WebPrerender webPrerender(prerender);
48 m_client->willAddPrerender(&webPrerender); 49 m_client->willAddPrerender(&webPrerender);
49 } 50 }
50 51
51 bool PrerendererClientImpl::isPrefetchOnly() { 52 bool PrerendererClientImpl::isPrefetchOnly() {
52 return m_client && m_client->isPrefetchOnly(); 53 return m_client && m_client->isPrefetchOnly();
53 } 54 }
54 55
55 } // namespace blink 56 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PrerendererClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698