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 3 // found in the LICENSE file. 4 // 5 // A class to hold the parameters we get back from the 6 // ViewHostMsg_DomOperationResponse IPC call. This is used when passing 7 // parameters through the notification service. 8 9 #ifndef CHROME_BROWSER_DOM_OPERATION_NOTIFICATION_DETAILS_H__ 10 #define CHROME_BROWSER_DOM_OPERATION_NOTIFICATION_DETAILS_H__ 11 #pragma once 12 13 class DomOperationNotificationDetails { 14 public: 15 DomOperationNotificationDetails(const std::string& json, int automation_id) 16 : json_(json), automation_id_(automation_id) { } 17 18 ~DomOperationNotificationDetails() { } 19 20 std::string json() const { return json_; } 21 int automation_id() const { return automation_id_; } 22 23 private: 24 std::string json_; 25 int automation_id_; 26 }; 27 28 #endif // CHROME_BROWSER_DOM_OPERATION_NOTIFICATION_DETAILS_H__ 29