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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.h

Issue 6733043: Coverity: Pass parameters by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 void GetBlockedPopupCount(int handle, int* count); 359 void GetBlockedPopupCount(int handle, int* count);
360 360
361 // Captures the entire page for the given tab and saves it as PNG at the 361 // Captures the entire page for the given tab and saves it as PNG at the
362 // given path. 362 // given path.
363 void CaptureEntirePageAsPNG(int tab_handle, const FilePath& path, 363 void CaptureEntirePageAsPNG(int tab_handle, const FilePath& path,
364 IPC::Message* reply_message); 364 IPC::Message* reply_message);
365 365
366 // Generic pattern for pyautolib 366 // Generic pattern for pyautolib
367 // Uses the JSON interface for input/output. 367 // Uses the JSON interface for input/output.
368 void SendJSONRequest(int handle, 368 void SendJSONRequest(int handle,
369 std::string json_request, 369 const std::string& json_request,
370 IPC::Message* reply_message); 370 IPC::Message* reply_message);
371 371
372 // Method ptr for json handlers. 372 // Method ptr for json handlers.
373 // Uses the JSON interface for input/output. 373 // Uses the JSON interface for input/output.
374 typedef void (TestingAutomationProvider::*JsonHandler)(DictionaryValue*, 374 typedef void (TestingAutomationProvider::*JsonHandler)(DictionaryValue*,
375 IPC::Message*); 375 IPC::Message*);
376 376
377 // Method ptr for json handlers that take a browser argument. 377 // Method ptr for json handlers that take a browser argument.
378 // Uses the JSON interface for input/output. 378 // Uses the JSON interface for input/output.
379 typedef void (TestingAutomationProvider::*BrowserJsonHandler)( 379 typedef void (TestingAutomationProvider::*BrowserJsonHandler)(
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 // Used to enumerate browser profiles. 1049 // Used to enumerate browser profiles.
1050 scoped_refptr<ImporterList> importer_list_; 1050 scoped_refptr<ImporterList> importer_list_;
1051 1051
1052 // The stored data for the ImportSettings operation. 1052 // The stored data for the ImportSettings operation.
1053 ImportSettingsData import_settings_data_; 1053 ImportSettingsData import_settings_data_;
1054 1054
1055 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1055 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1056 }; 1056 };
1057 1057
1058 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1058 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/accessibility_events.h ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698