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

Side by Side Diff: sky/engine/core/inspector/CodeGeneratorInspectorStrings.py

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 (c) 2013 Google Inc. All rights reserved. 1 # Copyright (c) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 class InspectorFrontendChannel; 138 class InspectorFrontendChannel;
139 139
140 typedef String ErrorString; 140 typedef String ErrorString;
141 141
142 class InspectorBackendDispatcherImpl; 142 class InspectorBackendDispatcherImpl;
143 143
144 class InspectorBackendDispatcher: public RefCounted<InspectorBackendDispatcher> { 144 class InspectorBackendDispatcher: public RefCounted<InspectorBackendDispatcher> {
145 public: 145 public:
146 static PassRefPtr<InspectorBackendDispatcher> create(InspectorFrontendChanne l* inspectorFrontendChannel); 146 static PassRefPtr<InspectorBackendDispatcher> create(InspectorFrontendChanne l* inspectorFrontendChannel);
147 virtual ~InspectorBackendDispatcher() { } 147 virtual ~InspectorBackendDispatcher() { }
148 virtual void trace(Visitor*) { }
149 148
150 class CallbackBase: public RefCounted<CallbackBase> { 149 class CallbackBase: public RefCounted<CallbackBase> {
151 public: 150 public:
152 CallbackBase(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id); 151 CallbackBase(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id);
153 virtual ~CallbackBase(); 152 virtual ~CallbackBase();
154 virtual void trace(Visitor*);
155 void sendFailure(const ErrorString&); 153 void sendFailure(const ErrorString&);
156 bool isActive(); 154 bool isActive();
157 155
158 protected: 156 protected:
159 void sendIfActive(PassRefPtr<JSONObject> partialMessage, const ErrorStri ng& invocationError, PassRefPtr<JSONValue> errorData); 157 void sendIfActive(PassRefPtr<JSONObject> partialMessage, const ErrorStri ng& invocationError, PassRefPtr<JSONValue> errorData);
160 158
161 private: 159 private:
162 void disable() { m_alreadySent = true; } 160 void disable() { m_alreadySent = true; }
163 161
164 RefPtr<InspectorBackendDispatcherImpl> m_backendImpl; 162 RefPtr<InspectorBackendDispatcherImpl> m_backendImpl;
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 return false; 483 return false;
486 484
487 return true; 485 return true;
488 } 486 }
489 487
490 InspectorBackendDispatcher::CallbackBase::CallbackBase(PassRefPtr<InspectorBacke ndDispatcherImpl> backendImpl, int id) 488 InspectorBackendDispatcher::CallbackBase::CallbackBase(PassRefPtr<InspectorBacke ndDispatcherImpl> backendImpl, int id)
491 : m_backendImpl(backendImpl), m_id(id), m_alreadySent(false) {} 489 : m_backendImpl(backendImpl), m_id(id), m_alreadySent(false) {}
492 490
493 InspectorBackendDispatcher::CallbackBase::~CallbackBase() {} 491 InspectorBackendDispatcher::CallbackBase::~CallbackBase() {}
494 492
495 void InspectorBackendDispatcher::CallbackBase::trace(Visitor* visitor)
496 {
497 visitor->trace(m_backendImpl);
498 }
499
500 void InspectorBackendDispatcher::CallbackBase::sendFailure(const ErrorString& er ror) 493 void InspectorBackendDispatcher::CallbackBase::sendFailure(const ErrorString& er ror)
501 { 494 {
502 ASSERT(error.length()); 495 ASSERT(error.length());
503 sendIfActive(nullptr, error, PassRefPtr<JSONValue>()); 496 sendIfActive(nullptr, error, PassRefPtr<JSONValue>());
504 } 497 }
505 498
506 bool InspectorBackendDispatcher::CallbackBase::isActive() 499 bool InspectorBackendDispatcher::CallbackBase::isActive()
507 { 500 {
508 return !m_alreadySent && m_backendImpl->isActive(); 501 return !m_alreadySent && m_backendImpl->isActive();
509 } 502 }
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 }; 947 };
955 948
956 """) 949 """)
957 950
958 class_binding_builder_part_4 = ( 951 class_binding_builder_part_4 = (
959 """ static Builder<NoFieldsSet> create() 952 """ static Builder<NoFieldsSet> create()
960 { 953 {
961 return Builder<NoFieldsSet>(JSONObject::create()); 954 return Builder<NoFieldsSet>(JSONObject::create());
962 } 955 }
963 """) 956 """)
OLDNEW
« no previous file with comments | « sky/engine/core/html/parser/HTMLTreeBuilder.cpp ('k') | sky/engine/core/inspector/ConsoleMessage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698