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

Side by Side Diff: pdf/preview_mode_client.cc

Issue 2407683002: PDF: Check the loaded URL in sendScriptingMessage_(). (Closed)
Patch Set: Created 4 years, 2 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
« pdf/document_loader.cc ('K') | « pdf/preview_mode_client.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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 "pdf/preview_mode_client.h" 5 #include "pdf/preview_mode_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const base::char16* term, 122 const base::char16* term,
123 bool case_sensitive, 123 bool case_sensitive,
124 std::vector<SearchStringResult>* results) { 124 std::vector<SearchStringResult>* results) {
125 NOTREACHED(); 125 NOTREACHED();
126 } 126 }
127 127
128 void PreviewModeClient::DocumentPaintOccurred() { 128 void PreviewModeClient::DocumentPaintOccurred() {
129 NOTREACHED(); 129 NOTREACHED();
130 } 130 }
131 131
132 void PreviewModeClient::OnGotActualURL(const std::string& url) {}
133
132 void PreviewModeClient::DocumentLoadComplete(int page_count) { 134 void PreviewModeClient::DocumentLoadComplete(int page_count) {
133 client_->PreviewDocumentLoadComplete(); 135 client_->PreviewDocumentLoadComplete();
134 } 136 }
135 137
136 void PreviewModeClient::DocumentLoadFailed() { 138 void PreviewModeClient::DocumentLoadFailed() {
137 client_->PreviewDocumentLoadFailed(); 139 client_->PreviewDocumentLoadFailed();
138 } 140 }
139 141
140 pp::Instance* PreviewModeClient::GetPluginInstance() { 142 pp::Instance* PreviewModeClient::GetPluginInstance() {
141 return nullptr; 143 return nullptr;
(...skipping 15 matching lines...) Expand all
157 NOTREACHED(); 159 NOTREACHED();
158 return false; 160 return false;
159 } 161 }
160 162
161 uint32_t PreviewModeClient::GetBackgroundColor() { 163 uint32_t PreviewModeClient::GetBackgroundColor() {
162 NOTREACHED(); 164 NOTREACHED();
163 return 0; 165 return 0;
164 } 166 }
165 167
166 } // namespace chrome_pdf 168 } // namespace chrome_pdf
OLDNEW
« pdf/document_loader.cc ('K') | « pdf/preview_mode_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698