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

Side by Side Diff: chrome/browser/ui/tab_contents/core_tab_helper.h

Issue 939713003: Enabled the "search web for image" context menu item when "Yandex" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h" 10 #include "content/public/browser/web_contents_user_data.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // content::WebContentsObserver overrides: 61 // content::WebContentsObserver overrides:
62 void DidStartLoading(content::RenderViewHost* render_view_host) override; 62 void DidStartLoading(content::RenderViewHost* render_view_host) override;
63 void WasShown() override; 63 void WasShown() override;
64 void WebContentsDestroyed() override; 64 void WebContentsDestroyed() override;
65 void BeforeUnloadFired(const base::TimeTicks& proceed_time) override; 65 void BeforeUnloadFired(const base::TimeTicks& proceed_time) override;
66 void BeforeUnloadDialogCancelled() override; 66 void BeforeUnloadDialogCancelled() override;
67 bool OnMessageReceived(const IPC::Message& message, 67 bool OnMessageReceived(const IPC::Message& message,
68 content::RenderFrameHost* render_frame_host) override; 68 content::RenderFrameHost* render_frame_host) override;
69 69
70 void OnRequestThumbnailForContextNodeACK(const std::string& thumbnail_data, 70 void OnRequestThumbnailForContextNodeACK(const std::string& thumbnail_data,
71 const std::string& thumbnail_format,
71 const gfx::Size& original_size); 72 const gfx::Size& original_size);
72 73
73 // Delegate for notifying our owner about stuff. Not owned by us. 74 // Delegate for notifying our owner about stuff. Not owned by us.
74 CoreTabHelperDelegate* delegate_; 75 CoreTabHelperDelegate* delegate_;
75 76
76 // The time when we started to create the new tab page. This time is from 77 // The time when we started to create the new tab page. This time is from
77 // before we created this WebContents. 78 // before we created this WebContents.
78 base::TimeTicks new_tab_start_time_; 79 base::TimeTicks new_tab_start_time_;
79 80
80 // The time that we started to close this WebContents. 81 // The time that we started to close this WebContents.
81 base::TimeTicks close_start_time_; 82 base::TimeTicks close_start_time_;
82 83
83 // The time when onbeforeunload ended. 84 // The time when onbeforeunload ended.
84 base::TimeTicks before_unload_end_time_; 85 base::TimeTicks before_unload_end_time_;
85 86
86 // The time when the tab was removed from view during close. 87 // The time when the tab was removed from view during close.
87 base::TimeTicks unload_detached_start_time_; 88 base::TimeTicks unload_detached_start_time_;
88 89
89 // Content restrictions, used to disable print/copy etc based on content's 90 // Content restrictions, used to disable print/copy etc based on content's
90 // (full-page plugins for now only) permissions. 91 // (full-page plugins for now only) permissions.
91 int content_restrictions_; 92 int content_restrictions_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); 94 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper);
94 }; 95 };
95 96
96 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ 97 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/tab_contents/core_tab_helper.cc » ('j') | components/search_engines/template_url.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698