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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 518583003: Don't take a fake UGI every time we execute Javascript. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 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 CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 void OnPasteAndMatchStyle(); 509 void OnPasteAndMatchStyle();
510 void OnDelete(); 510 void OnDelete();
511 void OnSelectAll(); 511 void OnSelectAll();
512 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); 512 void OnSelectRange(const gfx::Point& start, const gfx::Point& end);
513 void OnUnselect(); 513 void OnUnselect();
514 void OnReplace(const base::string16& text); 514 void OnReplace(const base::string16& text);
515 void OnReplaceMisspelling(const base::string16& text); 515 void OnReplaceMisspelling(const base::string16& text);
516 void OnCSSInsertRequest(const std::string& css); 516 void OnCSSInsertRequest(const std::string& css);
517 void OnJavaScriptExecuteRequest(const base::string16& javascript, 517 void OnJavaScriptExecuteRequest(const base::string16& javascript,
518 int id, 518 int id,
519 bool notify_result); 519 bool notify_result,
520 bool set_ugi_for_tests);
520 void OnSetEditableSelectionOffsets(int start, int end); 521 void OnSetEditableSelectionOffsets(int start, int end);
521 void OnSetCompositionFromExistingText( 522 void OnSetCompositionFromExistingText(
522 int start, int end, 523 int start, int end,
523 const std::vector<blink::WebCompositionUnderline>& underlines); 524 const std::vector<blink::WebCompositionUnderline>& underlines);
524 void OnExtendSelectionAndDelete(int before, int after); 525 void OnExtendSelectionAndDelete(int before, int after);
525 void OnReload(bool ignore_cache); 526 void OnReload(bool ignore_cache);
526 void OnTextSurroundingSelectionRequest(size_t max_length); 527 void OnTextSurroundingSelectionRequest(size_t max_length);
527 void OnAddStyleSheetByURL(const std::string& url); 528 void OnAddStyleSheetByURL(const std::string& url);
528 void OnSetupTransitionView(const std::string& markup); 529 void OnSetupTransitionView(const std::string& markup);
529 void OnBeginExitTransition(const std::string& css_selector); 530 void OnBeginExitTransition(const std::string& css_selector);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 #endif 734 #endif
734 735
735 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 736 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
736 737
737 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 738 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
738 }; 739 };
739 740
740 } // namespace content 741 } // namespace content
741 742
742 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 743 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698