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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 3115020: Fixes race condition that could result in a tab prematurely (Closed)
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // Informs renderer of updated content settings. 467 // Informs renderer of updated content settings.
468 void SendContentSettings(const GURL& url, 468 void SendContentSettings(const GURL& url,
469 const ContentSettings& settings); 469 const ContentSettings& settings);
470 470
471 // Tells the renderer to notify us when the page contents preferred size 471 // Tells the renderer to notify us when the page contents preferred size
472 // changed. |flags| is a combination of 472 // changed. |flags| is a combination of
473 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined 473 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined
474 // in render_messages.h. 474 // in render_messages.h.
475 void EnablePreferredSizeChangedMode(int flags); 475 void EnablePreferredSizeChangedMode(int flags);
476 476
477 #if defined(UNIT_TEST)
478 // This shouldn't be necessary outside of testing.
479 bool is_waiting_for_unload_ack() { return is_waiting_for_unload_ack_; }
480 #endif
481
477 protected: 482 protected:
478 // RenderWidgetHost protected overrides. 483 // RenderWidgetHost protected overrides.
479 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 484 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
480 bool* is_keyboard_shortcut); 485 bool* is_keyboard_shortcut);
481 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); 486 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event);
482 virtual void OnUserGesture(); 487 virtual void OnUserGesture();
483 virtual void NotifyRendererUnresponsive(); 488 virtual void NotifyRendererUnresponsive();
484 virtual void NotifyRendererResponsive(); 489 virtual void NotifyRendererResponsive();
485 virtual void OnMsgFocusedNodeChanged(); 490 virtual void OnMsgFocusedNodeChanged();
486 virtual void OnMsgFocus(); 491 virtual void OnMsgFocus();
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 int autofill_query_id_; 743 int autofill_query_id_;
739 std::vector<string16> autofill_values_; 744 std::vector<string16> autofill_values_;
740 std::vector<string16> autofill_labels_; 745 std::vector<string16> autofill_labels_;
741 std::vector<string16> autofill_icons_; 746 std::vector<string16> autofill_icons_;
742 std::vector<int> autofill_unique_ids_; 747 std::vector<int> autofill_unique_ids_;
743 748
744 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 749 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
745 }; 750 };
746 751
747 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 752 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698