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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 63093: Refactoring; switch the |filter| parameter into something that is more amenab... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/glue/chrome_client_impl.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 target_url_status_ = TARGET_PENDING; 1774 target_url_status_ = TARGET_PENDING;
1775 } else { 1775 } else {
1776 Send(new ViewHostMsg_UpdateTargetURL(routing_id_, page_id_, url)); 1776 Send(new ViewHostMsg_UpdateTargetURL(routing_id_, page_id_, url));
1777 target_url_ = url; 1777 target_url_ = url;
1778 target_url_status_ = TARGET_INFLIGHT; 1778 target_url_status_ = TARGET_INFLIGHT;
1779 } 1779 }
1780 } 1780 }
1781 } 1781 }
1782 1782
1783 void RenderView::RunFileChooser(bool multi_select, 1783 void RenderView::RunFileChooser(bool multi_select,
1784 const std::wstring& title, 1784 const string16& title,
1785 const std::wstring& default_filename, 1785 const FilePath& default_filename,
1786 const std::wstring& filter,
1787 WebFileChooserCallback* file_chooser) { 1786 WebFileChooserCallback* file_chooser) {
1788 if (file_chooser_.get()) { 1787 if (file_chooser_.get()) {
1789 // TODO(brettw): bug 1235154: This should be a synchronous message to deal 1788 // TODO(brettw): bug 1235154: This should be a synchronous message to deal
1790 // with the fact that web pages can programatically trigger this. With the 1789 // with the fact that web pages can programatically trigger this. With the
1791 // asnychronous messages, we can get an additional call when one is pending, 1790 // asnychronous messages, we can get an additional call when one is pending,
1792 // which this test is for. For now, we just ignore the additional file 1791 // which this test is for. For now, we just ignore the additional file
1793 // chooser request. WebKit doesn't do anything to expect the callback, so 1792 // chooser request. WebKit doesn't do anything to expect the callback, so
1794 // we can just ignore calling it. 1793 // we can just ignore calling it.
1795 delete file_chooser; 1794 delete file_chooser;
1796 return; 1795 return;
1797 } 1796 }
1798 file_chooser_.reset(file_chooser); 1797 file_chooser_.reset(file_chooser);
1799 Send(new ViewHostMsg_RunFileChooser(routing_id_, multi_select, title, 1798 Send(new ViewHostMsg_RunFileChooser(routing_id_, multi_select, title,
1800 default_filename, filter)); 1799 default_filename));
1801 } 1800 }
1802 1801
1803 void RenderView::AddMessageToConsole(WebView* webview, 1802 void RenderView::AddMessageToConsole(WebView* webview,
1804 const std::wstring& message, 1803 const std::wstring& message,
1805 unsigned int line_no, 1804 unsigned int line_no,
1806 const std::wstring& source_id) { 1805 const std::wstring& source_id) {
1807 Send(new ViewHostMsg_AddMessageToConsole(routing_id_, message, 1806 Send(new ViewHostMsg_AddMessageToConsole(routing_id_, message,
1808 static_cast<int32>(line_no), 1807 static_cast<int32>(line_no),
1809 source_id)); 1808 source_id));
1810 } 1809 }
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
3177 "Renderer.Other.StartToFinishDoc", start_to_finish_doc); 3176 "Renderer.Other.StartToFinishDoc", start_to_finish_doc);
3178 UMA_HISTOGRAM_TIMES( 3177 UMA_HISTOGRAM_TIMES(
3179 "Renderer.Other.FinishDocToFinish", finish_doc_to_finish); 3178 "Renderer.Other.FinishDocToFinish", finish_doc_to_finish);
3180 UMA_HISTOGRAM_TIMES( 3179 UMA_HISTOGRAM_TIMES(
3181 "Renderer.Other.RequestToFinish", request_to_finish); 3180 "Renderer.Other.RequestToFinish", request_to_finish);
3182 UMA_HISTOGRAM_TIMES( 3181 UMA_HISTOGRAM_TIMES(
3183 "Renderer.Other.StartToFinish", start_to_finish); 3182 "Renderer.Other.StartToFinish", start_to_finish);
3184 break; 3183 break;
3185 } 3184 }
3186 } 3185 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698