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

Unified Diff: content/browser/devtools/devtools_protocol.h

Issue 12209107: Intercept Inspector DOM.setFileInputFiles and grant read permissions to the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/devtools_protocol.h
diff --git a/content/browser/devtools/devtools_protocol.h b/content/browser/devtools/devtools_protocol.h
index b1c5ec64e0f0d9ce9ec19cc57cbe39a2111b27bb..86cf5b6c765cdfc2549f07702698f9ef97f99b96 100644
--- a/content/browser/devtools/devtools_protocol.h
+++ b/content/browser/devtools/devtools_protocol.h
@@ -31,20 +31,20 @@ class DevToolsProtocol {
public:
~Command();
- int id() { return id_; }
- std::string domain() { return domain_; }
- std::string method() { return method_; }
- base::DictionaryValue* params() { return params_.get(); }
+ int id() const { return id_; }
+ std::string domain() const { return domain_; }
+ std::string method() const { return method_; }
+ base::DictionaryValue* params() const { return params_.get(); }
// Creates success response. Takes ownership of |result|.
- scoped_ptr<Response> SuccessResponse(base::DictionaryValue* result);
+ scoped_ptr<Response> SuccessResponse(base::DictionaryValue* result) const;
// Creates error response. Caller takes ownership of the return value.
scoped_ptr<Response> ErrorResponse(int error_code,
- const std::string& error_message);
+ const std::string& error_message) const;
// Creates error response. Caller takes ownership of the return value.
- scoped_ptr<Response> NoSuchMethodErrorResponse();
+ scoped_ptr<Response> NoSuchMethodErrorResponse() const;
private:
friend class DevToolsProtocol;

Powered by Google App Engine
This is Rietveld 408576698