| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2010 Google Inc. All rights reserved. |    2  * Copyright (C) 2010 Google Inc. All rights reserved. | 
|    3  * |    3  * | 
|    4  * Redistribution and use in source and binary forms, with or without |    4  * Redistribution and use in source and binary forms, with or without | 
|    5  * modification, are permitted provided that the following conditions |    5  * modification, are permitted provided that the following conditions | 
|    6  * are met: |    6  * are met: | 
|    7  * |    7  * | 
|    8  * 1.  Redistributions of source code must retain the above copyright |    8  * 1.  Redistributions of source code must retain the above copyright | 
|    9  *     notice, this list of conditions and the following disclaimer. |    9  *     notice, this list of conditions and the following disclaimer. | 
|   10  * 2.  Redistributions in binary form must reproduce the above copyright |   10  * 2.  Redistributions in binary form must reproduce the above copyright | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   45  |   45  | 
|   46 namespace WebCore { |   46 namespace WebCore { | 
|   47  |   47  | 
|   48 class IDBTransaction; |   48 class IDBTransaction; | 
|   49  |   49  | 
|   50 typedef int ExceptionCode; |   50 typedef int ExceptionCode; | 
|   51  |   51  | 
|   52 class IDBRequest : public ScriptWrappable, public IDBCallbacks, public EventTarg
     et, public ActiveDOMObject { |   52 class IDBRequest : public ScriptWrappable, public IDBCallbacks, public EventTarg
     et, public ActiveDOMObject { | 
|   53     DEFINE_SELF_HANDLE(IDBRequest) |   53     DEFINE_SELF_HANDLE(IDBRequest) | 
|   54 public: |   54 public: | 
|   55     static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB
     Any> source, IDBTransaction*); |   55     static IDBRequest* create(ScriptExecutionContext*, PassRefPtr<IDBAny> source
     , IDBTransaction*); | 
|   56     static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB
     Any> source, IDBDatabaseBackendInterface::TaskType, IDBTransaction*); |   56     static IDBRequest* create(ScriptExecutionContext*, PassRefPtr<IDBAny> source
     , IDBDatabaseBackendInterface::TaskType, IDBTransaction*); | 
|   57     virtual ~IDBRequest(); |   57     virtual ~IDBRequest(); | 
|   58  |   58  | 
|   59     virtual void trace(Visitor* visitor) OVERRIDE |   59     virtual void trace(Visitor* visitor) OVERRIDE; | 
|   60     { |  | 
|   61         IDBCallbacks::trace(visitor); |  | 
|   62     } |  | 
|   63  |   60  | 
|   64     virtual void visitWith(Visitor* visitor) const OVERRIDE |   61     virtual void visitWith(Visitor* visitor) const OVERRIDE | 
|   65     { |   62     { | 
|   66         visitor->visit(this); |   63         visitor->visit(this); | 
|   67     } |   64     } | 
|   68  |   65  | 
|   69     PassRefPtr<IDBAny> result(ExceptionCode&) const; |   66     PassRefPtr<IDBAny> result(ExceptionCode&) const; | 
|   70     unsigned short errorCode(ExceptionCode&) const; |   67     unsigned short errorCode(ExceptionCode&) const; | 
|   71     PassRefPtr<DOMError> error(ExceptionCode&) const; |   68     PassRefPtr<DOMError> error(ExceptionCode&) const; | 
|   72     String webkitErrorMessage(ExceptionCode&) const; |   69     String webkitErrorMessage(ExceptionCode&) const; | 
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  166     bool m_didFireUpgradeNeededEvent; |  163     bool m_didFireUpgradeNeededEvent; | 
|  167     bool m_preventPropagation; |  164     bool m_preventPropagation; | 
|  168  |  165  | 
|  169     EventTargetData m_eventTargetData; |  166     EventTargetData m_eventTargetData; | 
|  170     DOMRequestState m_requestState; |  167     DOMRequestState m_requestState; | 
|  171 }; |  168 }; | 
|  172  |  169  | 
|  173 } // namespace WebCore |  170 } // namespace WebCore | 
|  174  |  171  | 
|  175 #endif // IDBRequest_h |  172 #endif // IDBRequest_h | 
| OLD | NEW |