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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "chrome/common/prerender_types.h" 10 #include "chrome/common/prerender_types.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // IPC handlers 46 // IPC handlers
47 void OnSetIsPrerendering(prerender::PrerenderMode mode); 47 void OnSetIsPrerendering(prerender::PrerenderMode mode);
48 void OnRequestReloadImageForContextNode(); 48 void OnRequestReloadImageForContextNode();
49 void OnRequestThumbnailForContextNode( 49 void OnRequestThumbnailForContextNode(
50 int thumbnail_min_area_pixels, 50 int thumbnail_min_area_pixels,
51 const gfx::Size& thumbnail_max_size_pixels, 51 const gfx::Size& thumbnail_max_size_pixels,
52 int callback_id); 52 int callback_id);
53 void OnPrintNodeUnderContextMenu(); 53 void OnPrintNodeUnderContextMenu();
54 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); 54 void OnSetClientSidePhishingDetection(bool enable_phishing_detection);
55 void OnAppBannerPromptRequest(int request_id,
56 const std::string& platform);
57 55
58 // Captures page information using the top (main) frame of a frame tree. 56 // Captures page information using the top (main) frame of a frame tree.
59 // Currently, this page information is just the text content of the all 57 // Currently, this page information is just the text content of the all
60 // frames, collected and concatenated until a certain limit (kMaxIndexChars) 58 // frames, collected and concatenated until a certain limit (kMaxIndexChars)
61 // is reached. 59 // is reached.
62 // TODO(dglazkov): This is incompatible with OOPIF and needs to be updated. 60 // TODO(dglazkov): This is incompatible with OOPIF and needs to be updated.
63 void CapturePageText(TextCaptureType capture_type); 61 void CapturePageText(TextCaptureType capture_type);
64 62
65 void CapturePageTextLater(TextCaptureType capture_type, 63 void CapturePageTextLater(TextCaptureType capture_type,
66 base::TimeDelta delay); 64 base::TimeDelta delay);
67 65
68 // Have the same lifetime as us. 66 // Have the same lifetime as us.
69 translate::TranslateHelper* translate_helper_; 67 translate::TranslateHelper* translate_helper_;
70 safe_browsing::PhishingClassifierDelegate* phishing_classifier_; 68 safe_browsing::PhishingClassifierDelegate* phishing_classifier_;
71 69
72 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); 70 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver);
73 }; 71 };
74 72
75 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 73 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/chrome_render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698